aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/oauth-client.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-10 22:15:25 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-10 22:15:25 +0200
commit69818c9394366b954b6ba3bd697bd9d2b09f2a16 (patch)
treead199a18ec3c322460d6f9523fc383ee562554e0 /server/models/oauth-client.ts
parent4d4e5cd4dca78480ec7f40e747f424cd107376a4 (diff)
downloadPeerTube-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.ts6
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
70countTotal = function (callback) { 70countTotal = function (callback: OAuthClientMethods.CountTotalCallback) {
71 return OAuthClient.count().asCallback(callback) 71 return OAuthClient.count().asCallback(callback)
72} 72}
73 73
74loadFirstClient = function (callback) { 74loadFirstClient = function (callback: OAuthClientMethods.LoadFirstClientCallback) {
75 return OAuthClient.findOne().asCallback(callback) 75 return OAuthClient.findOne().asCallback(callback)
76} 76}
77 77
78getByIdAndSecret = function (clientId, clientSecret) { 78getByIdAndSecret = function (clientId: string, clientSecret: string) {
79 const query = { 79 const query = {
80 where: { 80 where: {
81 clientId: clientId, 81 clientId: clientId,