From 790146bfac9b315f11836390250c96339a2d14c2 Mon Sep 17 00:00:00 2001 From: Jeremy Lin Date: Fri, 10 Jul 2020 17:23:02 -0700 Subject: [PATCH] Fix error in PostgreSQL build --- 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 index 1d8b1740..8e05fb27 100644 --- 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") }