parent
37986f8b0b
commit
6f6827d4d9
3 changed files with 27 additions and 5 deletions
|
|
@ -26,6 +26,11 @@ pub async fn register_push(
|
|||
Json(payload): Json<RegisterPushRequest>,
|
||||
) -> AppResult<Json<serde_json::Value>> {
|
||||
let user_sub = user.0.sub;
|
||||
tracing::info!(
|
||||
"Registering push subscription for user: {} with endpoint: {}",
|
||||
user_sub,
|
||||
payload.endpoint
|
||||
);
|
||||
|
||||
// Check if subscription exists
|
||||
let existing = push_subscription::Entity::find()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue