BLAH stupid middleware error

This commit is contained in:
newtbot
2024-01-25 05:11:28 +08:00
parent 057fbe2afb
commit ba498a4d4b
5 changed files with 21 additions and 23 deletions

View File

@ -8,7 +8,7 @@ moment = require('moment')
//getuser
//api/v0/user/me
async function getUserID(userid) {
async function getUserByID(userid) {
//console.log(userid);
//console.log(userid.id);
let userRes = await userModel.findByPk(userid.id, {
@ -131,7 +131,7 @@ async function updateProfile(user, body) {
}
module.exports = {
getUserID,
getUserByID,
addUser,
loginUser,
updateProfile,