diff --git a/lib/models/index.ts b/lib/models/index.ts index 146667226..c5eb80237 100644 --- a/lib/models/index.ts +++ b/lib/models/index.ts @@ -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}; +