diff --git a/src/db/models/Contact.helper.ts b/src/db/models/Contact.helper.ts index 1883585..857aef5 100644 --- a/src/db/models/Contact.helper.ts +++ b/src/db/models/Contact.helper.ts @@ -19,7 +19,7 @@ export async function purgeOldContacts(telegramID: TelegramID): Promise { if (!contact.createdAt) throw new Error("Creation time not set for contact."); const contactAge = currentTime - contact.createdAt.getTime(); - if (contactAge > 60 * 60 * 24 * 14 * 10000) { + if (contactAge > 60 * 60 * 24 * 14 * 1000) { oldContacts.push(contact); } });