Some fixes

This commit is contained in:
Torsten Schulz (notebook)
2024-08-26 23:48:54 +02:00
parent 255fb97dd3
commit 828035d339
21 changed files with 7464 additions and 53 deletions

View File

@@ -1,9 +1,10 @@
import { User, UserClub } from "../models";
import User from '../models/User.js'
import UserClub from '../models/UserClub.js';
export const getUserByToken = async(token) => {
const user = await User.findOne({
where: [
{hashedId: token}
{hashed_id: token}
]
});
return user;