a
All checks were successful
/ upload (release) Successful in 31s

This commit is contained in:
pavel 2026-02-12 02:02:51 +01:00
commit 6f6827d4d9
3 changed files with 27 additions and 5 deletions

View file

@ -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()