mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
issue #73, fix unnecessary logs for cleared push tokens
This commit is contained in:
parent
30cabccf6c
commit
bba5a1c6de
@ -61,6 +61,9 @@ func SendPushEvent(account store.Account, event string) {
|
||||
var messageBody string
|
||||
|
||||
rows.Scan(&pushToken, &pushType, &messageTitle, &messageBody)
|
||||
if pushToken == "" || pushToken == "null" {
|
||||
continue;
|
||||
}
|
||||
|
||||
if _, exists := tokens[pushToken]; !exists {
|
||||
tokens[pushToken] = true;
|
||||
|
Loading…
Reference in New Issue
Block a user