diff --git a/src/database/db.ts b/src/db/db.ts similarity index 100% rename from src/database/db.ts rename to src/db/db.ts diff --git a/src/database/knexfile.ts b/src/db/knexfile.ts similarity index 100% rename from src/database/knexfile.ts rename to src/db/knexfile.ts diff --git a/src/database/migrations/20240807213915_create_users_table.ts b/src/db/migrations/20240807213915_create_users_table.ts similarity index 100% rename from src/database/migrations/20240807213915_create_users_table.ts rename to src/db/migrations/20240807213915_create_users_table.ts diff --git a/src/database/redis.ts b/src/db/redis.ts similarity index 100% rename from src/database/redis.ts rename to src/db/redis.ts diff --git a/src/database/seeds/01_users.ts b/src/db/seeds/01_users.ts similarity index 100% rename from src/database/seeds/01_users.ts rename to src/db/seeds/01_users.ts diff --git a/src/jobs/email.job.ts b/src/jobs/email.job.ts index 4566e0b..e2bbf3e 100644 --- a/src/jobs/email.job.ts +++ b/src/jobs/email.job.ts @@ -1,5 +1,5 @@ import { Queue, Worker } from 'bullmq'; -import { redis } from '../database/db'; +import { redis } from '../db/db'; import { sendEmail } from './utils/email'; const queueName = 'sendEmailQueue'; diff --git a/src/jobs/jobs.ts b/src/jobs/jobs.ts index e69de29..238b7cb 100644 --- a/src/jobs/jobs.ts +++ b/src/jobs/jobs.ts @@ -0,0 +1 @@ +import { sendApproveTenantEmailJob } from './email.job'; diff --git a/src/server.ts b/src/server.ts index 6233936..e8269be 100644 --- a/src/server.ts +++ b/src/server.ts @@ -2,7 +2,7 @@ import { app } from './app'; import { Server } from 'http'; import { AddressInfo } from 'net'; import { appConfig } from './config'; -import { db, redis } from './database/db'; +import { db, redis } from './db/db'; const server: Server = app.listen(appConfig.port);