diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-25 11:55:06 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-26 09:11:38 +0200 |
commit | eb08047657e739bcd9e592d76307befa3998482b (patch) | |
tree | fc309f51ece792fd4307c4af510710a853e1d6b2 /server/initializers | |
parent | 5f04dd2f743961e0a06c29531cc3ccc9e4928d56 (diff) | |
download | PeerTube-eb08047657e739bcd9e592d76307befa3998482b.tar.gz PeerTube-eb08047657e739bcd9e592d76307befa3998482b.tar.zst PeerTube-eb08047657e739bcd9e592d76307befa3998482b.zip |
Use async/await in controllers
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/database.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index d461cb440..ea2b68f59 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -63,6 +63,7 @@ const sequelize = new Sequelize(dbname, username, password, { | |||
63 | host: CONFIG.DATABASE.HOSTNAME, | 63 | host: CONFIG.DATABASE.HOSTNAME, |
64 | port: CONFIG.DATABASE.PORT, | 64 | port: CONFIG.DATABASE.PORT, |
65 | benchmark: isTestInstance(), | 65 | benchmark: isTestInstance(), |
66 | isolationLevel: Sequelize.Transaction.ISOLATION_LEVELS.SERIALIZABLE, | ||
66 | 67 | ||
67 | logging: (message: string, benchmark: number) => { | 68 | logging: (message: string, benchmark: number) => { |
68 | let newMessage = message | 69 | let newMessage = message |