diff options
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, |