Skip to content

Commit

Permalink
fix: remove SELECT changes from updateUser query
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreferris committed Feb 2, 2024
1 parent 209485c commit c487237
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ insertOrIgnoreUser:
INSERT OR IGNORE INTO User(qualified_id, name, handle, email, phone, accent_id, team, connection_status, preview_asset_id, complete_asset_id, user_type, bot_service, deleted, incomplete_metadata, expires_at, supported_protocols)
VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);

updateUser {
updateUser:
UPDATE User
SET
name = coalesce(:name, name),
Expand All @@ -71,8 +71,6 @@ preview_asset_id = :preview_asset_id, preview_asset_id = coalesce(:preview_asset
complete_asset_id = :complete_asset_id, complete_asset_id = coalesce(:complete_asset_id, complete_asset_id),
supported_protocols = :supported_protocols, supported_protocols = coalesce(:supported_protocols, supported_protocols)
WHERE qualified_id = ?;
SELECT changes();
}

updatePartialUserInformation:
UPDATE User
Expand Down

0 comments on commit c487237

Please sign in to comment.