-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: new listing type field (#3085) * 3032/new what to expect core (#3087) * feat: bring over What to Expect and update Markdown styles * feat: show dedicated content on the What to Expect form step * feat: add additional text to terms and confirmation * feat: update form conditionals to use waitlist enum * fix: remove stray import * fix: typos and improved switch statements * fix: confirmation text and remove lottery date * fix: add back in eligibility translations (#3134) * fix: correct the cron jobs * feat(expandablecontent): remove classname from ExpandableContent move styling of more/less button to parent component #3140 * Fix code style issues with Prettier * feat(expandabletext): add classname to stories add margin to instances of ExpandableText #3140 * fix: switch listing to server side props (#3145) * fix: update activity-log relationship to users for deletion (#3139) * Allow markup for descriptions and optional classname (#3131) * feat: display income currency value with commas * feat: accept only numeric values in currency field * feat: submit income as a string * feat: remove redundant step prop from currency field * feat: add thank you translations to email footer * fix: change the cron job logging level (#3150) * fix: what to expect missed changes * fix: email tests * chore(release): version - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] Co-authored-by: Jared White <[email protected]> Co-authored-by: Emily Jablonski <[email protected]> Co-authored-by: Mark Buckner <[email protected]> Co-authored-by: Lint Action <[email protected]> Co-authored-by: christine-sfg <[email protected]> Co-authored-by: krzysztof ziecina <[email protected]>
- Loading branch information
1 parent
e1b312d
commit 2964d79
Showing
61 changed files
with
1,169 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,77 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [7.0.1](https://github.com/bloom-housing/bloom/compare/@bloom-housing/[email protected]...@bloom-housing/[email protected]) (2022-10-26) | ||
|
||
**Note:** Version bump only for package @bloom-housing/backend-core | ||
|
||
|
||
|
||
|
||
|
||
## [7.0.1-alpha.5](https://github.com/bloom-housing/bloom/compare/@bloom-housing/[email protected]...@bloom-housing/[email protected]) (2022-10-26) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* change the cron job logging level ([#3150](https://github.com/bloom-housing/bloom/issues/3150)) ([fe43154](https://github.com/bloom-housing/bloom/commit/fe4315423ffd17ee22d16018cc938271592dfcf5)) | ||
|
||
|
||
|
||
|
||
|
||
## [7.0.1-alpha.4](https://github.com/bloom-housing/bloom/compare/@bloom-housing/[email protected]...@bloom-housing/[email protected]) (2022-10-25) | ||
|
||
|
||
### Features | ||
|
||
* add thank you translations to email footer ([5f3c7b1](https://github.com/bloom-housing/bloom/commit/5f3c7b1e81357e1aff5f3f3532dbb7691ac243ce)) | ||
|
||
|
||
|
||
|
||
|
||
## [7.0.1-alpha.3](https://github.com/bloom-housing/bloom/compare/@bloom-housing/[email protected]...@bloom-housing/[email protected]) (2022-10-21) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* update activity-log relationship to users for deletion ([#3139](https://github.com/bloom-housing/bloom/issues/3139)) ([f95532e](https://github.com/bloom-housing/bloom/commit/f95532e4ebe693c128d742399030054d0f735164)) | ||
|
||
|
||
|
||
|
||
|
||
## [7.0.1-alpha.2](https://github.com/bloom-housing/bloom/compare/@bloom-housing/[email protected]...@bloom-housing/[email protected]) (2022-10-19) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* correct the cron jobs ([407c0fb](https://github.com/bloom-housing/bloom/commit/407c0fbe10e3150047dadbb43c5248b768e8dc63)) | ||
|
||
|
||
|
||
|
||
|
||
## [7.0.1-alpha.1](https://github.com/bloom-housing/bloom/compare/@bloom-housing/[email protected]...@bloom-housing/[email protected]) (2022-10-13) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* add back in eligibility translations ([#3134](https://github.com/bloom-housing/bloom/issues/3134)) ([a9ba463](https://github.com/bloom-housing/bloom/commit/a9ba463bfb414ff13820616f7045f43cc997dca2)) | ||
|
||
|
||
|
||
|
||
|
||
## [7.0.1-alpha.0](https://github.com/bloom-housing/bloom/compare/@bloom-housing/[email protected]...@bloom-housing/[email protected]) (2022-10-05) | ||
|
||
**Note:** Version bump only for package @bloom-housing/backend-core | ||
|
||
|
||
|
||
|
||
|
||
# [7.0.0](https://github.com/bloom-housing/bloom/compare/@bloom-housing/[email protected]...@bloom-housing/[email protected]) (2022-09-29) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@bloom-housing/backend-core", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Listings service reference implementation for the Bloom affordable housing system", | ||
"author": "Sean Albert <[email protected]>", | ||
"private": false, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Inject, Injectable, Logger } from "@nestjs/common" | ||
import { InjectRepository } from "@nestjs/typeorm" | ||
import { Interval } from "@nestjs/schedule" | ||
import { ListingStatus } from "./types/listing-status-enum" | ||
import { ListingRepository } from "./db/listing.repository" | ||
|
||
@Injectable() | ||
export class ListingsCronService { | ||
constructor( | ||
@InjectRepository(ListingRepository) private readonly listingRepository: ListingRepository, | ||
@Inject(Logger) private readonly logger = new Logger(ListingsCronService.name) | ||
) {} | ||
|
||
@Interval(1000 * 60 * 60) | ||
public async changeOverdueListingsStatusCron() { | ||
this.logger.warn("changeOverdueListingsStatusCron job running") | ||
const listings = await this.listingRepository | ||
.createQueryBuilder("listings") | ||
.select(["listings.id", "listings.applicationDueDate", "listings.status"]) | ||
.where(`listings.status = '${ListingStatus.active}'`) | ||
.andWhere(`listings.applicationDueDate IS NOT NULL`) | ||
.andWhere(`listings.applicationDueDate < NOW()`) | ||
.getMany() | ||
|
||
for (const listing of listings) { | ||
listing.status = ListingStatus.closed | ||
listing.closedAt = new Date() | ||
} | ||
|
||
await this.listingRepository.save(listings) | ||
this.logger.warn(`Changed the status of ${listings?.length} listings`) | ||
} | ||
} |
Oops, something went wrong.