fix env sample, fix log queue, use dbType for enum
This commit is contained in:
1 parent
400b295dae
commit
458442f364
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -11,7 +11,7 @@ LOG_LEVEL=debug
|
||||
# Database
|
||||
# --------
|
||||
DB_CONNECTION_STRING=mongodb://localhost:27017/uptime_db
|
||||
QUEUE_TYPE=lessSimpleQueue
|
||||
QUEUE_TYPE=superSimpleQueue
|
||||
|
||||
# JWT Authentication
|
||||
# ------------------
|
||||
|
||||
@@ -144,7 +144,7 @@ export class LessSimpleQueue implements IJobQueue {
|
||||
return true;
|
||||
} catch (error: unknown) {
|
||||
this.logger.error({
|
||||
message: `Failed to initialize SuperSimpleQueue: ${error instanceof Error ? error.message : String(error)}`,
|
||||
message: `Failed to initialize LessSimpleQueue: ${error instanceof Error ? error.message : String(error)}`,
|
||||
service: SERVICE_NAME,
|
||||
method: "init",
|
||||
});
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { z } from "zod";
|
||||
import { DbTypes } from "@/types/settings.js";
|
||||
import { DbTypes, QueueTypes } from "@/types/settings.js";
|
||||
import { booleanCoercion } from "./shared.js";
|
||||
|
||||
const envSchema = z.object({
|
||||
@@ -11,7 +11,7 @@ const envSchema = z.object({
|
||||
// Database
|
||||
DB_CONNECTION_STRING: z.string().min(1, "Database connection string is required"),
|
||||
DB_TYPE: z.enum(DbTypes).default("mongodb"),
|
||||
QUEUE_TYPE: z.enum(["lessSimpleQueue", "superSimpleQueue"]).default("superSimpleQueue"),
|
||||
QUEUE_TYPE: z.enum(QueueTypes).default("superSimpleQueue"),
|
||||
|
||||
// JWT Authentication
|
||||
JWT_SECRET: z.string().min(1, "JWT_SECRET is required"),
|
||||
|
||||
Reference in new issue
Block a user