Added accidents to diary

This commit is contained in:
Torsten Schulz
2025-03-10 16:46:43 +01:00
parent 9442e3683b
commit c294dd7b2a
10 changed files with 2176 additions and 1369 deletions

View File

@@ -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) => {