Skip to content

Commit

Permalink
remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
aabassiouni committed May 21, 2024
1 parent 4a25678 commit e9f8bc9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/workers/src/db/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as schema from "@entrybase/db/src/schema";
import { neon, neonConfig } from "@neondatabase/serverless";
import { NeonHttpDatabase, drizzle } from "drizzle-orm/neon-http";
import { type NeonHttpDatabase, drizzle } from "drizzle-orm/neon-http";

export let db: NeonHttpDatabase<typeof schema>;

Expand Down
9 changes: 4 additions & 5 deletions apps/workers/src/routes/signup.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { signups } from "@entrybase/db";
import { newId } from "@entrybase/id";
import { sql } from "drizzle-orm";
import type { Context } from "hono";
import { env } from 'hono/adapter'
import { env } from "hono/adapter";
import { db } from "../db";

export async function signupRoute(c: Context) {
Expand All @@ -27,10 +26,10 @@ export async function signupRoute(c: Context) {
waitlist_id: waitlist,
update: "update from workers",
}),
})
});

return c.json({ id: signupID, message: "Signup Successful" });
} catch{
return c.json({ message: "Internal Server Error :(" }, { status: 500 });
} catch {
return c.json({ message: "Internal Server Error" }, { status: 500 });
}
}
1 change: 0 additions & 1 deletion apps/workers/src/worker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { sql } from "drizzle-orm";
import { Hono } from "hono";
import { createConnection } from "./db";
import { type Env, zEnv } from "./env";
Expand Down

0 comments on commit e9f8bc9

Please sign in to comment.