From a276e0f8ae1b8ef512943919d52cf07647cf63d9 Mon Sep 17 00:00:00 2001 From: Valentin Date: Thu, 14 Sep 2023 23:59:36 +0200 Subject: [PATCH] update users endpoint --- routes/endpoint/update.route.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/endpoint/update.route.js b/routes/endpoint/update.route.js index be03415..7ab85d5 100644 --- a/routes/endpoint/update.route.js +++ b/routes/endpoint/update.route.js @@ -22,6 +22,8 @@ router.get("/:server/users", async (req, res) => { } res.send(raw) + server.lastPull = new Date() + server.save() }) } else { res.send("invalid request") @@ -46,8 +48,6 @@ router.get("/:server/key/:user", async (req, res) => { raw += '# ' + x + '\n' + result[x] + '\n\n' } res.send(raw) - server.lastPull = new Date() - server.save() }) } else {