mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-30 13:41:00 +00:00
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:
parent
91352d0d3c
commit
d278a106e8
1 changed files with 4 additions and 1 deletions
|
@ -16,7 +16,7 @@ dbconfig.logging = config.debug ? (data) => {
|
||||||
logger.info(data)
|
logger.info(data)
|
||||||
} : false
|
} : false
|
||||||
|
|
||||||
export let sequelize: any = null;
|
export let sequelize: any;
|
||||||
|
|
||||||
// Heroku specific
|
// Heroku specific
|
||||||
if (config.dbURL) {
|
if (config.dbURL) {
|
||||||
|
@ -27,3 +27,6 @@ if (config.dbURL) {
|
||||||
|
|
||||||
sequelize.addModels([Author, Note, Revision, Temp, User]);
|
sequelize.addModels([Author, Note, Revision, Temp, User]);
|
||||||
|
|
||||||
|
|
||||||
|
export {Author, Note, Revision, Temp, User};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue