1
0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2024-11-08 20:12:34 +01:00

Fix error in PostgreSQL build

This commit is contained in:
Jeremy Lin 2020-07-10 17:23:02 -07:00
parent af625930d6
commit 790146bfac

View File

@ -227,8 +227,10 @@ impl CollectionUser {
))
.on_conflict((users_collections::user_uuid, users_collections::collection_uuid))
.do_update()
.set(users_collections::read_only.eq(read_only))
.set(users_collections::hide_passwords.eq(hide_passwords))
.set((
users_collections::read_only.eq(read_only),
users_collections::hide_passwords.eq(hide_passwords),
))
.execute(&**conn)
.map_res("Error adding user to collection")
}