fix: update the date when editing the mod entry
Some checks are pending
Deploy Next.js application / deploy (push) Waiting to run
Some checks are pending
Deploy Next.js application / deploy (push) Waiting to run
This commit is contained in:
parent
f861bdfed8
commit
e67ab5688f
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue