mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 20:49:16 +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
|
var messageBody string
|
||||||
|
|
||||||
rows.Scan(&pushToken, &pushType, &messageTitle, &messageBody)
|
rows.Scan(&pushToken, &pushType, &messageTitle, &messageBody)
|
||||||
|
if pushToken == "" || pushToken == "null" {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if _, exists := tokens[pushToken]; !exists {
|
if _, exists := tokens[pushToken]; !exists {
|
||||||
tokens[pushToken] = true;
|
tokens[pushToken] = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user