fix: update clubId handling in CSV upload to support query parameters and improve form data processing
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 53s
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 53s
This commit is contained in:
@@ -4,7 +4,7 @@ import { emitScheduleMatchUpdated } from '../services/socketService.js';
|
||||
import { devLog } from '../utils/logger.js';
|
||||
export const uploadCSV = async (req, res) => {
|
||||
try {
|
||||
const { clubId } = req.body;
|
||||
const clubId = req.body?.clubId ?? req.query?.clubId;
|
||||
const { authcode: userToken} = req.headers;
|
||||
const filePath = req.file.path;
|
||||
const result = await MatchService.importCSV(userToken, clubId, filePath);
|
||||
|
||||
Reference in New Issue
Block a user