From 3fd3ab2d34d512b160a5e6084d7609be7b4f4452 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 12 Dec 2017 17:53:50 +0100 Subject: Move models to typescript-sequelize --- scripts/danger/clean/cleaner.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'scripts/danger/clean') diff --git a/scripts/danger/clean/cleaner.ts b/scripts/danger/clean/cleaner.ts index 428333528..a22e2ed6a 100644 --- a/scripts/danger/clean/cleaner.ts +++ b/scripts/danger/clean/cleaner.ts @@ -1,12 +1,10 @@ -import * as rimraf from 'rimraf' import * as Promise from 'bluebird' +import * as rimraf from 'rimraf' +import { CONFIG, initDatabase, sequelizeTypescript } from '../../../server/initializers' -import { CONFIG } from '../../../server/initializers/constants' -import { database as db } from '../../../server/initializers/database' - -db.init(true) +initDatabase(true) .then(() => { - return db.sequelize.drop() + return sequelizeTypescript.drop() }) .then(() => { console.info('Tables of %s deleted.', CONFIG.DATABASE.DBNAME) -- cgit v1.2.3