Skip to content

Commit

Permalink
rename hashPlaintextToken -> convertPlaintextToken
Browse files Browse the repository at this point in the history
  • Loading branch information
smatting committed Oct 29, 2020
1 parent c65cb10 commit 75ebe88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/spar/src/Spar/Data.hs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ lookupScimToken token = do
case scimTokenLookupKey row of
ScimTokenLookupKeyHashed _ -> pure ()
ScimTokenLookupKeyPlaintext token' ->
hashPlaintextToken token' tokenInfo
connvertPlaintextToken token' tokenInfo
pure tokenInfo
where
sel :: PrepQuery R (ScimTokenHash, ScimToken) ScimTokenRow
Expand All @@ -640,12 +640,12 @@ lookupScimToken token = do
FROM team_provisioning_by_token WHERE token_ in (?, ?)
|]

hashPlaintextToken ::
connvertPlaintextToken ::
(HasCallStack, MonadClient m) =>
ScimToken ->
ScimTokenInfo ->
m ()
hashPlaintextToken token ScimTokenInfo {..} = retry x5 . batch $ do
connvertPlaintextToken token ScimTokenInfo {..} = retry x5 . batch $ do
setType BatchLogged
setConsistency Quorum
addPrepQuery delById (stiTeam, stiId)
Expand Down

0 comments on commit 75ebe88

Please sign in to comment.