fix: resolve critical vulnerability V-002
Automatically generated security fix
This commit is contained in:
parent
911587ea68
commit
d73768645b
2 changed files with 4 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ export const deleteJob = new Elysia().use(userService).get(
|
|||
});
|
||||
|
||||
// delete the job
|
||||
db.query("DELETE FROM jobs WHERE id = ?").run(job.id);
|
||||
db.query("DELETE FROM jobs WHERE id = ? AND user_id = ?").run(job.id, user.id);
|
||||
return redirect(`${WEBROOT}/history`, 302);
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue