@@ -42,4 +42,3 @@ export async function deleteTask(id: number): Promise<boolean> {
|
|||||||
const r = await getPool().query('DELETE FROM tasks WHERE id = $1', [id]);
|
const r = await getPool().query('DELETE FROM tasks WHERE id = $1', [id]);
|
||||||
return (r.rowCount ?? 0) > 0;
|
return (r.rowCount ?? 0) > 0;
|
||||||
}
|
}
|
||||||
const x: number = "oops";
|
|
||||||
|
|||||||
Reference in New Issue
Block a user