mirror of
https://github.com/ChanX21/Sigillum
synced 2026-04-21 15:47:55 +00:00
Add response end to uploadImage for proper request termination
This commit is contained in:
parent
3fd93aacc2
commit
0fe81bd694
1 changed files with 1 additions and 0 deletions
|
|
@ -302,6 +302,7 @@ export const uploadImage = async (req: FileRequest, res: Response): Promise<void
|
|||
}
|
||||
}]
|
||||
});
|
||||
res.end();
|
||||
} catch (error) {
|
||||
console.error('Error authenticating image:', error);
|
||||
res.status(500).json({ message: 'Failed to authenticate image' });
|
||||
|
|
|
|||
Loading…
Reference in a new issue