forked from bloom-housing/bloom
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35a8558
commit 06fa80e
Showing
187 changed files
with
13,753 additions
and
17,485 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 |
---|---|---|
|
@@ -52,6 +52,5 @@ module.exports = { | |
"migration/", | ||
"**/*.stories.tsx", | ||
"**/.eslintrc.js", | ||
"**/*.test.*", | ||
], | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "Listings service reference implementation for the Bloom affordable housing system", | ||
"author": "Sean Albert <[email protected]>", | ||
"private": false, | ||
|
@@ -40,6 +40,7 @@ | |
"dependencies": { | ||
"@anchan828/nest-sendgrid": "^0.3.25", | ||
"@google-cloud/translate": "^6.2.6", | ||
"@nestjs/bull": "^0.5.0", | ||
"@nestjs/cli": "^8.2.1", | ||
"@nestjs/common": "^8.3.1", | ||
"@nestjs/config": "^1.2.0", | ||
|
@@ -54,6 +55,7 @@ | |
"@types/cache-manager": "^3.4.0", | ||
"async-retry": "^1.3.1", | ||
"axios": "0.21.2", | ||
"bull": "^4.8.4", | ||
"cache-manager": "^3.4.0", | ||
"cache-manager-redis-store": "^2.0.0", | ||
"casbin": "5.13.0", | ||
|
@@ -87,7 +89,7 @@ | |
"twilio": "^3.71.3", | ||
"typeorm": "0.2.41", | ||
"typeorm-naming-strategies": "^1.1.0", | ||
"typescript": "^4.5.5", | ||
"typescript": "4.6.4", | ||
"uuid": "^8.3.2" | ||
}, | ||
"devDependencies": { | ||
|
@@ -96,6 +98,8 @@ | |
"@nestjs/schematics": "^8.0.7", | ||
"@nestjs/testing": "^8.3.1", | ||
"@types/axios": "^0.14.0", | ||
"@types/bull": "^3.15.8", | ||
"@types/cron": "^1.7.3", | ||
"@types/express": "^4.17.8", | ||
"@types/node": "^12.12.67", | ||
"@types/passport-jwt": "^3.0.3", | ||
|
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
22 changes: 22 additions & 0 deletions
22
...nd/core/src/application-flagged-sets/application-flagged-sets-cronjob-boostrap.service.ts
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,22 @@ | ||
import { InjectQueue } from "@nestjs/bull" | ||
import { Injectable } from "@nestjs/common" | ||
import { Queue } from "bull" | ||
import { AFSProcessingQueueNames } from "./constants/applications-flagged-sets-constants" | ||
import { ConfigService } from "@nestjs/config" | ||
|
||
@Injectable() | ||
export class ApplicationFlaggedSetsCronjobBoostrapService { | ||
constructor( | ||
@InjectQueue(AFSProcessingQueueNames.afsProcessing) private afsProcessingQueue: Queue, | ||
private readonly config: ConfigService | ||
) { | ||
void this.afsProcessingQueue.add(null, { | ||
repeat: { | ||
cron: config.get<string>("AFS_PROCESSING_CRON_STRING"), | ||
}, | ||
// NOTE: This is not unique on purpose because Bull will not add a job twice with an ID | ||
// which already exists. | ||
id: "afs-process", | ||
}) | ||
} | ||
} |
Oops, something went wrong.