core: fix accept conditions query (#5187)

This commit is contained in:
spaced4ndy
2024-11-15 11:20:32 +04:00
committed by GitHub
parent 1fbf21d395
commit ff8e29c0eb
+1 -1
View File
@@ -796,7 +796,7 @@ acceptConditions db condId opIds acceptedAt = do
where
getServerOperator_ opId =
ExceptT $ firstRow toServerOperator (SEOperatorNotFound opId) $
DB.query db (serverOperatorQuery <> " WHERE operator_id = ?") (Only opId)
DB.query db (serverOperatorQuery <> " WHERE server_operator_id = ?") (Only opId)
acceptConditions_ :: DB.Connection -> ServerOperator -> Text -> Maybe UTCTime -> IO ()
acceptConditions_ db ServerOperator {operatorId, operatorTag} conditionsCommit acceptedAt =