commit 790146bfac9b315f11836390250c96339a2d14c2 parent af625930d65f9829eeccebc598403837303da144 Author: Jeremy Lin <jeremy.lin@gmail.com> Date: Fri, 10 Jul 2020 17:23:02 -0700 Fix error in PostgreSQL build Diffstat:
M | src/db/models/collection.rs | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/db/models/collection.rs b/src/db/models/collection.rs @@ -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") }