mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: create model
This commit is contained in:
1 parent
ba5026fa56
commit
4ed8358738
14 files changed
+5033
-273
No files matched your search
@@ -6,6 +6,7 @@ import swaggerUI from 'swagger-ui-express'
|
||||
import passport from 'passport'
|
||||
import * as trpcExpress from '@trpc/server/adapters/express'
|
||||
import { connectDB } from '@odyssey/models'
|
||||
import { db } from '@odyssey/database'
|
||||
|
||||
import './auth/passport.js'
|
||||
import socketServer from './api/socket.js'
|
||||
@@ -22,6 +23,7 @@ import { appRouter } from './routers/index.js'
|
||||
import { createContext } from './trpc.js'
|
||||
|
||||
async function main() {
|
||||
console.log(db)
|
||||
if (!config.secret) {
|
||||
logger.error(
|
||||
'No SECRET_KEY found in .env! To set up a persistent key, please run `bun run setup`:'
|
||||
|
||||
Reference in new issue
Block a user