Browse Source
allow device to be saved in postgresql
pull/6495/head
Stefan Melmuk
1 day ago
No known key found for this signature in database
GPG Key ID: 817020C608FE9C09
1 changed files with
1 additions and
1 deletions
-
src/db/models/device.rs
|
|
|
@ -154,7 +154,7 @@ impl Device { |
|
|
|
.values(&*self) |
|
|
|
.on_conflict((devices::uuid, devices::user_uuid)) |
|
|
|
.do_update() |
|
|
|
.set(self) |
|
|
|
.set(&*self) |
|
|
|
.execute(conn), |
|
|
|
10, |
|
|
|
).map_res("Error saving device") |
|
|
|
|