diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-14 17:31:26 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 350e31d6b64e4973dfa5e9f7b46841cb09aeb1ad (patch) | |
tree | f4191f3c04a5230fcf8ca3d6ca3248643fc4151d /server/models/application/application-interface.ts | |
parent | e34c85e527100c0b5c44567bd951e95be41b8d7e (diff) | |
download | PeerTube-350e31d6b64e4973dfa5e9f7b46841cb09aeb1ad.tar.gz PeerTube-350e31d6b64e4973dfa5e9f7b46841cb09aeb1ad.tar.zst PeerTube-350e31d6b64e4973dfa5e9f7b46841cb09aeb1ad.zip |
Follow works
Diffstat (limited to 'server/models/application/application-interface.ts')
-rw-r--r-- | server/models/application/application-interface.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/server/models/application/application-interface.ts b/server/models/application/application-interface.ts index 33254ba2d..2c391dba3 100644 --- a/server/models/application/application-interface.ts +++ b/server/models/application/application-interface.ts | |||
@@ -1,18 +1,21 @@ | |||
1 | import * as Sequelize from 'sequelize' | 1 | import * as Sequelize from 'sequelize' |
2 | import * as Promise from 'bluebird' | 2 | import * as Bluebird from 'bluebird' |
3 | 3 | ||
4 | export namespace ApplicationMethods { | 4 | export namespace ApplicationMethods { |
5 | export type LoadMigrationVersion = () => Promise<number> | 5 | export type LoadMigrationVersion = () => Bluebird<number> |
6 | 6 | ||
7 | export type UpdateMigrationVersion = ( | 7 | export type UpdateMigrationVersion = ( |
8 | newVersion: number, | 8 | newVersion: number, |
9 | transaction: Sequelize.Transaction | 9 | transaction: Sequelize.Transaction |
10 | ) => Promise<[ number, ApplicationInstance[] ]> | 10 | ) => Bluebird<[ number, ApplicationInstance[] ]> |
11 | |||
12 | export type CountTotal = () => Bluebird<number> | ||
11 | } | 13 | } |
12 | 14 | ||
13 | export interface ApplicationClass { | 15 | export interface ApplicationClass { |
14 | loadMigrationVersion: ApplicationMethods.LoadMigrationVersion | 16 | loadMigrationVersion: ApplicationMethods.LoadMigrationVersion |
15 | updateMigrationVersion: ApplicationMethods.UpdateMigrationVersion | 17 | updateMigrationVersion: ApplicationMethods.UpdateMigrationVersion |
18 | countTotal: ApplicationMethods.CountTotal | ||
16 | } | 19 | } |
17 | 20 | ||
18 | export interface ApplicationAttributes { | 21 | export interface ApplicationAttributes { |