fixed all warnings :D

This commit is contained in:
Oliver Bryan
2025-12-31 18:08:47 +00:00
parent 70ef02f790
commit 8b6dad8a2a
23 changed files with 138 additions and 145 deletions

View File

@@ -17,6 +17,7 @@ export const testDB = async () => {
console.log("db connected");
} catch (err) {
console.log("db down");
console.error(err);
process.exit();
}
};

View File

@@ -1,7 +1,7 @@
import type { BunRequest } from "bun";
import { getIssues } from "../../db/queries";
export default async function issuesAll(req: BunRequest) {
export default async function issuesAll(_req: BunRequest) {
const issues = await getIssues();
return Response.json(issues);

View File

@@ -2,7 +2,7 @@ import type { BunRequest } from "bun";
import { getProjectsWithCreators } from "../../db/queries";
// /projects/all
export default async function projectsAll(req: BunRequest) {
export default async function projectsAll(_req: BunRequest) {
const projects = await getProjectsWithCreators();
return Response.json(projects);

View File

@@ -1,5 +1,5 @@
import type { BunRequest } from "bun";
import { getProjectByID, deleteProject } from "../../db/queries";
import { deleteProject, getProjectByID } from "../../db/queries";
// /project/delete?id=1
export default async function projectDelete(req: BunRequest) {

View File

@@ -2,7 +2,7 @@ import type { BunRequest } from "bun";
import { getProjectsWithCreators } from "../../db/queries";
// /projects/with-creators
export default async function projectsWithCreators(req: BunRequest) {
export default async function projectsWithCreators(_req: BunRequest) {
const projects = await getProjectsWithCreators();
return Response.json(projects);