From 2457d9352ff031d8a9a0c54605e0494952712b70 Mon Sep 17 00:00:00 2001 From: Arthur Morrow Date: Fri, 29 Nov 2024 11:40:52 -0500 Subject: [PATCH] fixed ttl for office staff because we only run once a day Jira ticket: CAMS-484 Co-authored-by: Stanley Smith <8822118+governmentSponsored@users.noreply.github.com> --- .../adapters/gateways/mongo/offices.mongo.repository.test.ts | 2 +- .../lib/adapters/gateways/mongo/offices.mongo.repository.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/functions/lib/adapters/gateways/mongo/offices.mongo.repository.test.ts b/backend/functions/lib/adapters/gateways/mongo/offices.mongo.repository.test.ts index 432dfb8b6..3eb28695d 100644 --- a/backend/functions/lib/adapters/gateways/mongo/offices.mongo.repository.test.ts +++ b/backend/functions/lib/adapters/gateways/mongo/offices.mongo.repository.test.ts @@ -49,7 +49,7 @@ describe('offices repo', () => { const session = await createMockApplicationContextSession(); const officeCode = 'test_office_code'; - const ttl = 4500; + const ttl = 86400; const staff = createAuditRecord({ id: session.user.id, documentType: 'OFFICE_STAFF', diff --git a/backend/functions/lib/adapters/gateways/mongo/offices.mongo.repository.ts b/backend/functions/lib/adapters/gateways/mongo/offices.mongo.repository.ts index a32640137..9f88dd152 100644 --- a/backend/functions/lib/adapters/gateways/mongo/offices.mongo.repository.ts +++ b/backend/functions/lib/adapters/gateways/mongo/offices.mongo.repository.ts @@ -26,7 +26,7 @@ export class OfficesMongoRepository extends BaseMongoRepository implements Offic } async putOfficeStaff(officeCode: string, user: CamsUserReference): Promise { - const ttl = 4500; + const ttl = 86400; const staff = createAuditRecord({ id: user.id, documentType: 'OFFICE_STAFF',