From 5375301040b184bf005a055c1928023fa075d644 Mon Sep 17 00:00:00 2001 From: Ishaan Dey Date: Sun, 21 Apr 2024 23:11:22 -0400 Subject: [PATCH] change worker name database -> worker --- backend/worker/package-lock.json | 4 ++-- backend/worker/package.json | 2 +- backend/worker/src/index.ts | 3 --- backend/worker/wrangler.toml | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/backend/worker/package-lock.json b/backend/worker/package-lock.json index ebb9ed3..08d723f 100644 --- a/backend/worker/package-lock.json +++ b/backend/worker/package-lock.json @@ -1,11 +1,11 @@ { - "name": "database", + "name": "worker", "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "database", + "name": "worker", "version": "0.0.0", "dependencies": { "@paralleldrive/cuid2": "^2.2.2", diff --git a/backend/worker/package.json b/backend/worker/package.json index 6aae34c..06f6b74 100644 --- a/backend/worker/package.json +++ b/backend/worker/package.json @@ -1,5 +1,5 @@ { - "name": "database", + "name": "worker", "version": "0.0.0", "private": true, "scripts": { diff --git a/backend/worker/src/index.ts b/backend/worker/src/index.ts index 4dbe97d..e03fc4d 100644 --- a/backend/worker/src/index.ts +++ b/backend/worker/src/index.ts @@ -1,8 +1,5 @@ import type { DrizzleD1Database } from "drizzle-orm/d1"; import { drizzle } from "drizzle-orm/d1"; -import { eq } from "drizzle-orm/expressions"; -import type { IRequest, Route } from "itty-router"; -import { Router } from "itty-router"; import { json } from "itty-router-extras"; import { ZodError, z } from "zod"; diff --git a/backend/worker/wrangler.toml b/backend/worker/wrangler.toml index f5d03d5..8db99ca 100644 --- a/backend/worker/wrangler.toml +++ b/backend/worker/wrangler.toml @@ -1,5 +1,5 @@ #:schema node_modules/wrangler/config-schema.json -name = "database" +name = "sandbox" main = "src/index.ts" compatibility_date = "2024-04-05" compatibility_flags = ["nodejs_compat"]