Added accidents to diary
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import User from '../models/User.js'
|
||||
import UserClub from '../models/UserClub.js';
|
||||
import HttpError from '../exceptions/HttpError.js';
|
||||
import { config } from 'dotenv';
|
||||
|
||||
export const getUserByToken = async(token) => {
|
||||
try {
|
||||
@@ -32,6 +33,7 @@ export const hasUserClubAccess = async(userId, clubId) => {
|
||||
console.log(error);
|
||||
throw new HttpError('notfound', 500);
|
||||
}
|
||||
console.log('---- no user found');
|
||||
}
|
||||
|
||||
export const checkAccess = async(userToken, clubId) => {
|
||||
|
||||
Reference in New Issue
Block a user