@@ -255,7 +255,7 @@ async function handleArchiveAction(formData: FormData) {
255255 await archivePlatformNotification ( notificationId ) ;
256256 return typedjson ( { success : true } ) ;
257257 } catch ( error ) {
258- logger . error ( "Failed to archive platform notification" , { error } ) ;
258+ logger . error ( "Failed to archive platform notification" , { error, notificationId } ) ;
259259 return typedjson ( { error : "Failed to archive notification" } , { status : 500 } ) ;
260260 }
261261}
@@ -270,7 +270,7 @@ async function handleDeleteAction(formData: FormData) {
270270 await deletePlatformNotification ( notificationId ) ;
271271 return typedjson ( { success : true } ) ;
272272 } catch ( error ) {
273- logger . error ( "Failed to delete platform notification" , { error } ) ;
273+ logger . error ( "Failed to delete platform notification" , { error, notificationId } ) ;
274274 return typedjson ( { error : "Failed to delete notification" } , { status : 500 } ) ;
275275 }
276276}
@@ -285,7 +285,7 @@ async function handlePublishNowAction(formData: FormData) {
285285 await publishNowPlatformNotification ( notificationId ) ;
286286 return typedjson ( { success : true } ) ;
287287 } catch ( error ) {
288- logger . error ( "Failed to publish platform notification" , { error } ) ;
288+ logger . error ( "Failed to publish platform notification" , { error, notificationId } ) ;
289289 return typedjson ( { error : "Failed to publish notification" } , { status : 500 } ) ;
290290 }
291291}
0 commit comments