1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-05 05:40:06 +00:00

fix: fetch client from DB for each request

This commit is contained in:
Saad Jutt
2022-04-24 04:16:13 +05:00
parent 51f6aa34a1
commit 4ad8c81e49
3 changed files with 6 additions and 30 deletions

View File

@@ -1,5 +1,4 @@
import mongoose from 'mongoose'
import { populateClients } from '../routes/api/auth'
import { seedDB } from './seedDB'
export const connectDB = async () => {
@@ -22,7 +21,5 @@ export const connectDB = async () => {
console.log('Connected to db!')
await seedDB()
await populateClients()
})
}