mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-13 02:55:39 +00:00
chore: get rid of direct DB init and use db_*
This commit is contained in:
@@ -41,7 +41,7 @@ pub async fn mark_read(
|
||||
// TODO handle error where payload.to doesnt exist
|
||||
|
||||
// TODO get payload from path /api/v1/notifications/{id}/read"
|
||||
data.dblib
|
||||
data.db
|
||||
.mark_notification_read(&receiver, payload.id)
|
||||
.await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user