Skip to content

Commit

Permalink
fix bug in submission
Browse files Browse the repository at this point in the history
  • Loading branch information
RA341 committed Nov 9, 2024
1 parent 1fc8f86 commit 0dab95c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devU-api/src/entities/submission/submission.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function post(req: Request, res: Response, next: NextFunction) {
if (!req.currentUser?.userId) return res.status(400).json(new GenericResponse('Request requires auth'))

const reqSubmission = req.body

reqSubmission.userId = req.currentUser?.userId
reqSubmission.submitterIp = req.header('x-forwarded-for') || req.socket.remoteAddress
reqSubmission.submittedBy = req.currentUser?.userId

Expand Down

0 comments on commit 0dab95c

Please sign in to comment.