re-use models when hot reloading

This commit is contained in:
Thomas Ruoff
2020-09-05 00:03:59 +02:00
committed by Thomas Ruoff
parent 654b4d706c
commit 451d0e2d78
3 changed files with 4 additions and 12 deletions

View File

@@ -1,7 +1,6 @@
import * as mongoose from 'mongoose'
import Booker from './booker'
import Booking from './booking'
import { BOOKING_STATUS } from './bookingStatus'
let connectedPromise: Promise<typeof mongoose>