diff --git a/api/src/chat/schemas/subscriber.schema.ts b/api/src/chat/schemas/subscriber.schema.ts index ba3ea80a..1cfdbd68 100644 --- a/api/src/chat/schemas/subscriber.schema.ts +++ b/api/src/chat/schemas/subscriber.schema.ts @@ -90,13 +90,13 @@ export class SubscriberStub extends BaseSchema { @Prop({ type: Date, - default: () => Date.now() + 7 * 24 * 60 * 60 * 1000, + default: () => Date.now(), }) lastvisit?: Date; @Prop({ type: Date, - default: () => Date.now() + 7 * 24 * 60 * 60 * 1000, + default: () => Date.now(), }) retainedFrom?: Date; diff --git a/api/src/utils/test/fixtures/subscriber.ts b/api/src/utils/test/fixtures/subscriber.ts index 22caa4a3..0e73ae73 100644 --- a/api/src/utils/test/fixtures/subscriber.ts +++ b/api/src/utils/test/fixtures/subscriber.ts @@ -23,8 +23,8 @@ export const subscriberDefaultValues: TSubscriberFixtures['defaultValues'] = { timezone: 0, assignedTo: null, assignedAt: null, - lastvisit: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000), - retainedFrom: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000), + lastvisit: new Date(), + retainedFrom: new Date(), avatar: null, context: { vars: {},