diff --git a/bun.lockb b/bun.lockb index 16343b7..8ff0636 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index a190b7f..9889473 100644 --- a/package.json +++ b/package.json @@ -8,20 +8,20 @@ "start": "bun src/index.ts" }, "dependencies": { - "@hono/node-server": "1.13.7", - "@hono/swagger-ui": "0.5.0", - "@hono/zod-openapi": "0.18.3", - "@hono/zod-validator": "0.4.2", - "bullmq": "5.34.3", + "@hono/node-server": "1.14.0", + "@hono/swagger-ui": "0.5.1", + "@hono/zod-openapi": "0.19.2", + "@hono/zod-validator": "0.4.3", + "bullmq": "5.44.4", "handlebars": "4.7.8", - "hono": "4.6.14", - "ioredis": "5.4.1", - "nodemailer": "6.9.16", - "zod": "3.24.1" + "hono": "4.7.5", + "ioredis": "5.6.0", + "nodemailer": "6.10.0", + "zod": "3.24.2" }, "devDependencies": { - "@types/node": "22.10.2", + "@types/node": "22.13.14", "@types/nodemailer": "6.4.17", - "bun-types": "1.1.40" + "bun-types": "1.2.6" } } diff --git a/src/routes/email.ts b/src/routes/email.ts index 78fe0a8..0fa1ba5 100644 --- a/src/routes/email.ts +++ b/src/routes/email.ts @@ -21,7 +21,7 @@ async function generateBarcodeDataURL(data) { return `${process.env.DOCUMENT_SERVER_URL}/v1/barcodes/code128/${data}` } -emailRouter.post('/', bearerAuth({ token: process.env.AUTHKEY }), zValidator('json', sendEmailSchema), async (c) => { +emailRouter.post('/', bearerAuth({ token: process.env.AUTHKEY || "" }), zValidator('json', sendEmailSchema), async (c) => { let { to, templateName, language, data } = c.req.valid('json') const attachments: Attachment[] = [] try {