Skip to content

Commit

Permalink
chore: 2022-09-29 release (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludtkemorgan authored Oct 3, 2022
1 parent 35a8558 commit 06fa80e
Show file tree
Hide file tree
Showing 187 changed files with 13,753 additions and 17,485 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,5 @@ module.exports = {
"migration/",
"**/*.stories.tsx",
"**/.eslintrc.js",
"**/*.test.*",
],
}
3,723 changes: 1,474 additions & 2,249 deletions backend/core/CHANGELOG.md

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions backend/core/package.json
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,
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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": {
Expand All @@ -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",
Expand Down
12 changes: 0 additions & 12 deletions backend/core/src/ami-charts/dto/ami-chart.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,4 @@ export class AmiChartUpdateDto extends AmiChartCreateDto {
@IsOptional({ groups: [ValidationsGroupsEnum.default] })
@IsUUID(4, { groups: [ValidationsGroupsEnum.default] })
id?: string

@Expose()
@IsOptional({ groups: [ValidationsGroupsEnum.default] })
@IsDate({ groups: [ValidationsGroupsEnum.default] })
@Type(() => Date)
createdAt?: Date

@Expose()
@IsOptional({ groups: [ValidationsGroupsEnum.default] })
@IsDate({ groups: [ValidationsGroupsEnum.default] })
@Type(() => Date)
updatedAt?: Date
}
3 changes: 3 additions & 0 deletions backend/core/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// dotenv is a dev dependency, so conditionally import it (don't need it in Prod).
import { BullModule } from "@nestjs/bull"

try {
// eslint-disable-next-line @typescript-eslint/no-var-requires
require("dotenv").config()
Expand Down Expand Up @@ -38,6 +40,7 @@ import { PaperApplicationsModule } from "./paper-applications/paper-applications
import { ActivityLogModule } from "./activity-log/activity-log.module"
import { logger } from "./shared/middlewares/logger.middleware"
import { CatchAllFilter } from "./shared/filters/catch-all-filter"
import { AFSProcessingQueueNames } from "./application-flagged-sets/constants/applications-flagged-sets-constants"

export function applicationSetup(app: INestApplication) {
const { httpAdapter } = app.get(HttpAdapterHost)
Expand Down
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",
})
}
}
Loading

0 comments on commit 06fa80e

Please sign in to comment.