updated filtering code
This commit is contained in:
10
src/index.ts
10
src/index.ts
@@ -1,12 +1,12 @@
|
||||
import mongoose from "mongoose";
|
||||
import app from "./server";
|
||||
import mongoose from 'mongoose';
|
||||
import app from './server';
|
||||
|
||||
(async () => {
|
||||
const PORT = parseInt(process.env.PORT ?? "8000");
|
||||
const DB_URI = process.env.DB_URI ?? "";
|
||||
const PORT = parseInt(process.env.PORT ?? '8000');
|
||||
const DB_URI = process.env.DB_URI ?? '';
|
||||
|
||||
await mongoose.connect(DB_URI);
|
||||
await app.listen({ port: PORT, host: "0.0.0.0" });
|
||||
await app.listen({ port: PORT, host: '0.0.0.0' });
|
||||
})().catch((err) => {
|
||||
console.log(err);
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user