Browse Source

allow device to be saved in postgresql

pull/6495/head
Stefan Melmuk 1 day ago
parent
commit
7b56458e89
No known key found for this signature in database GPG Key ID: 817020C608FE9C09
  1. 2
      src/db/models/device.rs

2
src/db/models/device.rs

@ -154,7 +154,7 @@ impl Device {
.values(&*self) .values(&*self)
.on_conflict((devices::uuid, devices::user_uuid)) .on_conflict((devices::uuid, devices::user_uuid))
.do_update() .do_update()
.set(self) .set(&*self)
.execute(conn), .execute(conn),
10, 10,
).map_res("Error saving device") ).map_res("Error saving device")

Loading…
Cancel
Save