feat: add delete button in history (#440)
This commit is contained in:
parent
0096a6f197
commit
64264a41d9
8 changed files with 122 additions and 104 deletions
|
|
@ -7,7 +7,7 @@ import { userService } from "./user";
|
|||
import { Jobs } from "../db/types";
|
||||
|
||||
export const deleteJob = new Elysia().use(userService).get(
|
||||
"/delete/:userId/:jobId",
|
||||
"/delete/:jobId",
|
||||
async ({ params, redirect, user }) => {
|
||||
const job = db
|
||||
.query("SELECT * FROM jobs WHERE user_id = ? AND id = ?")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue