fix(Communities): correct query params order when updating community

settings

Turns out `UpdateCommunitySettings()` has never worked. Two parameters
where in the wrong order, cause the SQL statement to never find the row
it has to update.
This commit is contained in:
Pascal Precht 2022-10-24 10:45:41 +02:00 committed by r4bbit.eth
parent 5b941cab0c
commit b2dce92f3f
1 changed files with 1 additions and 1 deletions

View File

@ -686,8 +686,8 @@ func (p *Persistence) UpdateCommunitySettings(communitySettings CommunitySetting
WHERE community_id = ?`,
communitySettings.HistoryArchiveSupportEnabled,
communitySettings.HistoryArchiveSupportEnabled,
communitySettings.CommunityID,
communitySettings.Clock,
communitySettings.CommunityID,
)
return err
}