diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-10 22:15:25 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-10 22:15:25 +0200 |
commit | 69818c9394366b954b6ba3bd697bd9d2b09f2a16 (patch) | |
tree | ad199a18ec3c322460d6f9523fc383ee562554e0 /server/models/oauth-client.ts | |
parent | 4d4e5cd4dca78480ec7f40e747f424cd107376a4 (diff) | |
download | PeerTube-69818c9394366b954b6ba3bd697bd9d2b09f2a16.tar.gz PeerTube-69818c9394366b954b6ba3bd697bd9d2b09f2a16.tar.zst PeerTube-69818c9394366b954b6ba3bd697bd9d2b09f2a16.zip |
Type functions
Diffstat (limited to 'server/models/oauth-client.ts')
-rw-r--r-- | server/models/oauth-client.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/oauth-client.ts b/server/models/oauth-client.ts index 2cefb5cb9..22fae2842 100644 --- a/server/models/oauth-client.ts +++ b/server/models/oauth-client.ts | |||
@@ -67,15 +67,15 @@ function associate (models) { | |||
67 | }) | 67 | }) |
68 | } | 68 | } |
69 | 69 | ||
70 | countTotal = function (callback) { | 70 | countTotal = function (callback: OAuthClientMethods.CountTotalCallback) { |
71 | return OAuthClient.count().asCallback(callback) | 71 | return OAuthClient.count().asCallback(callback) |
72 | } | 72 | } |
73 | 73 | ||
74 | loadFirstClient = function (callback) { | 74 | loadFirstClient = function (callback: OAuthClientMethods.LoadFirstClientCallback) { |
75 | return OAuthClient.findOne().asCallback(callback) | 75 | return OAuthClient.findOne().asCallback(callback) |
76 | } | 76 | } |
77 | 77 | ||
78 | getByIdAndSecret = function (clientId, clientSecret) { | 78 | getByIdAndSecret = function (clientId: string, clientSecret: string) { |
79 | const query = { | 79 | const query = { |
80 | where: { | 80 | where: { |
81 | clientId: clientId, | 81 | clientId: clientId, |