Skip to content

Commit d56bcf2

Browse files
Merge pull request #1050 from US-Trustee-Program/office-staff-ttl
CAMS-484 fixed ttl for office staff because we only run once a day
2 parents 1952dc6 + 2457d93 commit d56bcf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/functions/lib/adapters/gateways/mongo/offices.mongo.repository.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('offices repo', () => {
4949
const session = await createMockApplicationContextSession();
5050
const officeCode = 'test_office_code';
5151

52-
const ttl = 4500;
52+
const ttl = 86400;
5353
const staff = createAuditRecord<OfficeStaff>({
5454
id: session.user.id,
5555
documentType: 'OFFICE_STAFF',

backend/functions/lib/adapters/gateways/mongo/offices.mongo.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class OfficesMongoRepository extends BaseMongoRepository implements Offic
2626
}
2727

2828
async putOfficeStaff(officeCode: string, user: CamsUserReference): Promise<void> {
29-
const ttl = 4500;
29+
const ttl = 86400;
3030
const staff = createAuditRecord<OfficeStaff>({
3131
id: user.id,
3232
documentType: 'OFFICE_STAFF',

0 commit comments

Comments
 (0)