diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/oauth/oauth-token.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/models/oauth/oauth-token.ts b/server/models/oauth/oauth-token.ts index 9d1b63813..528bb9587 100644 --- a/server/models/oauth/oauth-token.ts +++ b/server/models/oauth/oauth-token.ts | |||
@@ -159,4 +159,14 @@ export class OAuthTokenModel extends Model<OAuthTokenModel> { | |||
159 | return token | 159 | return token |
160 | }) | 160 | }) |
161 | } | 161 | } |
162 | |||
163 | static deleteUserToken (userId: number) { | ||
164 | const query = { | ||
165 | where: { | ||
166 | userId | ||
167 | } | ||
168 | } | ||
169 | |||
170 | return OAuthTokenModel.destroy(query) | ||
171 | } | ||
162 | } | 172 | } |