enhance(sw): If receiving a push notification issued more than a day, ignore it. (#8980)
* enhance(sw): ignore old push notification
* ✌️
* 半日
* !==
* 1日
			
			
This commit is contained in:
		
							parent
							
								
									7f808eaf42
								
							
						
					
					
						commit
						83ebe79a3f
					
				
					 3 changed files with 7 additions and 1 deletions
				
			
		|  | @ -64,6 +64,7 @@ export async function pushNotification<T extends keyof pushNotificationsTypes>(u | |||
| 			type, | ||||
| 			body: type === 'notification' ? truncateNotification(body as Packed<'Notification'>) : body, | ||||
| 			userId, | ||||
| 			dateTime: (new Date()).getTime(), | ||||
| 		}), { | ||||
| 			proxy: config.proxy, | ||||
| 		}).catch((err: any) => { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue