mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 10:33:01 +00:00
fixed all warnings :D
This commit is contained in:
@@ -17,6 +17,7 @@ export const testDB = async () => {
|
||||
console.log("db connected");
|
||||
} catch (err) {
|
||||
console.log("db down");
|
||||
console.error(err);
|
||||
process.exit();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user