Skip to content

Commit d312e43

Browse files
authored
Merge pull request #6254 from 7riumph/suggested_comment_removal
Suggested comment removal
2 parents 3d88c84 + ba8c987 commit d312e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/api/v1/users/sessions_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def destroy
1313
api_token = request.headers["Authorization"]&.split(" ")&.last
1414
# find user's api credentials by access token
1515
api_credential = ApiCredential.find_by(api_token_digest: Digest::SHA256.hexdigest(api_token))
16-
# set api and refresh tokens to nil; otherwise render 401
16+
# set api and refresh tokens to nil; otherwise render 401 0000
1717
if api_credential
1818
api_credential.revoke_api_token
1919
api_credential.revoke_refresh_token

0 commit comments

Comments
 (0)