ENCOA-16: Added a creation date to the Code List

This commit is contained in:
Tiago Ribeiro
2024-04-18 14:18:29 +01:00
parent 0f03ce95e7
commit 771262fc18
3 changed files with 7 additions and 0 deletions

View File

@@ -78,6 +78,7 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
type,
code,
creator: req.session.user!.id,
creationDate: new Date().toISOString(),
expiryDate,
};