Some fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user