create-sip 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,11 +5,6 @@ import fs from 'fs'
5
5
  import router from './routes/api.js'
6
6
  import { readJson } from '../tools/readjson.js'
7
7
  import './models/modrels.js'
8
- import sequelize from './database/database.js'
9
-
10
- await sequelize.authenticate({
11
- alter: true
12
- })
13
8
 
14
9
  const config = await readJson('config/default.json')
15
10
 
@@ -1,7 +1,12 @@
1
1
  import User from './user.js';
2
+ import sequelize from './database/database.js'
2
3
 
3
4
  const db = {};
4
5
 
5
6
  db.User = User;
6
7
 
8
+ await sequelize.sync({
9
+ alter: true
10
+ })
11
+
7
12
  export default db;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sip",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "main": "index.js",
5
5
  "bin": {
6
6
  "create-sip": "create-sip.js"