Skip to content

Commit

Permalink
Fix update user query
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Mar 12, 2024
1 parent d1bc687 commit 46420c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions database/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ const (
`
updateUserQuery = `
UPDATE "user"
SET username=$1, agent=$2, device=$3,
management_room=$4, space_room=$5,
phone_last_seen=$6, phone_last_pinged=$7, timezone=$8
WHERE mxid=$9
SET username=$2, agent=$3, device=$4,
management_room=$5, space_room=$6,
phone_last_seen=$7, phone_last_pinged=$8, timezone=$9
WHERE mxid=$1
`
getUserLastAppStateKeyIDQuery = "SELECT key_id FROM whatsmeow_app_state_sync_keys WHERE jid=$1 ORDER BY timestamp DESC LIMIT 1"
)
Expand Down

0 comments on commit 46420c1

Please sign in to comment.