added model exports in index.ts

Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
Philip Molares 2020-04-11 12:13:37 +02:00 committed by David Mehren
parent 91352d0d3c
commit d278a106e8
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -16,7 +16,7 @@ dbconfig.logging = config.debug ? (data) => {
logger.info(data)
} : false
export let sequelize: any = null;
export let sequelize: any;
// Heroku specific
if (config.dbURL) {
@ -27,3 +27,6 @@ if (config.dbURL) {
sequelize.addModels([Author, Note, Revision, Temp, User]);
export {Author, Note, Revision, Temp, User};