File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -773,14 +773,11 @@ export class ServiceWorker {
773773 launchUrl = defaultNotificationUrlFromConfig ;
774774
775775 if ( ! dbDefaultNotificationUrl ) {
776- // intentionally not awaiting this promise to not block notification click handling
777- Database . setAppState ( { defaultNotificationUrl : defaultNotificationUrlFromConfig } ) . catch ( e => {
778- Log . error ( "Failed to save default notification url to db" , e ) ;
779- } ) ;
776+ await Database . setAppState ( { defaultNotificationUrl : defaultNotificationUrlFromConfig } ) ;
780777 }
781778 }
782779 } catch ( e ) {
783- Log . error ( "Failed to get app config to determine default notification url " , e ) ;
780+ Log . error ( "Failed to update notification in the database " , e ) ;
784781 }
785782 }
786783
You can’t perform that action at this time.
0 commit comments