feat: implement change timestamp for subscriptions set
This commit is contained in:
parent
2f0fe08f4c
commit
6d439783b5
7 changed files with 243 additions and 7 deletions
|
|
@ -85,8 +85,11 @@ pub async fn put_device_subscriptions(
|
|||
.insert(&ctx.pool)?
|
||||
};
|
||||
|
||||
Ok::<_, AppError>(db::Subscription::update_for_device(
|
||||
&ctx.pool, device.id, urls,
|
||||
Ok::<_, AppError>(db::Subscription::set_for_device(
|
||||
&ctx.pool,
|
||||
device.id,
|
||||
urls,
|
||||
chrono::Utc::now().timestamp(),
|
||||
)?)
|
||||
})
|
||||
.await
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue