fix: update the date when editing the mod entry
Some checks are pending
Deploy Next.js application / deploy (push) Waiting to run

This commit is contained in:
Dorian Niemiec 2024-09-08 19:14:39 +02:00
parent f861bdfed8
commit e67ab5688f

View file

@ -21,6 +21,7 @@ export async function PUT(
{ _id: new ObjectId(id) }, { _id: new ObjectId(id) },
{ {
$set: { $set: {
date: new Date().toISOString().split("T")[0],
fileName, fileName,
version, version,
downloadLink, downloadLink,