From 6c567bf989ba399130ab22a962ea1d8a193a7ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E7=9F=A5=E7=81=AB=20Shiranui?= Date: Mon, 14 Oct 2024 13:46:13 +0800 Subject: [PATCH] fix(user.js): replace sara with xara --- src/routes/users.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/users.js b/src/routes/users.js index d76058a..105f8e4 100644 --- a/src/routes/users.js +++ b/src/routes/users.js @@ -9,7 +9,7 @@ const {useCache} = require("../init/cache"); const User = require("../models/user"); const utilMailSender = require("../utils/mail_sender"); -const utilSaraToken = require("../utils/sara_token"); +const utilXaraToken = require("../utils/xara_token"); const utilCodeSession = require("../utils/code_session"); const utilVisitor = require("../utils/visitor"); const utilUser = require("../utils/user"); @@ -103,7 +103,7 @@ router.put("/me", // Update values const metadata = await utilUser.saveData(user); - const token = utilSaraToken. + const token = utilXaraToken. issue(metadata); // Send response @@ -269,7 +269,7 @@ router.patch("/me/email", const userData = utilUser.saveData(user); // Generate token - const token = utilSaraToken.issue(userData); + const token = utilXaraToken.issue(userData); // Send response res. @@ -433,7 +433,7 @@ router.patch("/", const userData = await utilUser.saveData(user); // Generate token - const token = utilSaraToken.issue(userData); + const token = utilXaraToken.issue(userData); // Send response res.