Browse Source
Merge pull request #1055 from jjlin/pg
Fix error in PostgreSQL build
pull/1061/head
Daniel García
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
2 deletions
-
src/db/models/collection.rs
|
@ -227,8 +227,10 @@ impl CollectionUser { |
|
|
)) |
|
|
)) |
|
|
.on_conflict((users_collections::user_uuid, users_collections::collection_uuid)) |
|
|
.on_conflict((users_collections::user_uuid, users_collections::collection_uuid)) |
|
|
.do_update() |
|
|
.do_update() |
|
|
.set(users_collections::read_only.eq(read_only)) |
|
|
.set(( |
|
|
.set(users_collections::hide_passwords.eq(hide_passwords)) |
|
|
users_collections::read_only.eq(read_only), |
|
|
|
|
|
users_collections::hide_passwords.eq(hide_passwords), |
|
|
|
|
|
)) |
|
|
.execute(&**conn) |
|
|
.execute(&**conn) |
|
|
.map_res("Error adding user to collection") |
|
|
.map_res("Error adding user to collection") |
|
|
} |
|
|
} |
|
|