From e67ab5688f11693ae637335b5377484ebe881466 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 8 Sep 2024 19:14:39 +0200 Subject: [PATCH] fix: update the date when editing the mod entry --- app/api/update/mods/[id]/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/update/mods/[id]/route.ts b/app/api/update/mods/[id]/route.ts index bfaf8c4..431e96a 100644 --- a/app/api/update/mods/[id]/route.ts +++ b/app/api/update/mods/[id]/route.ts @@ -21,6 +21,7 @@ export async function PUT( { _id: new ObjectId(id) }, { $set: { + date: new Date().toISOString().split("T")[0], fileName, version, downloadLink,