There was an error while loading. Please reload this page.
1 parent d819f7d commit 7c75148Copy full SHA for 7c75148
1 file changed
route_push.go
@@ -264,6 +264,7 @@ func push(params map[string]interface{}) (int, error) {
264
// Remove deviceToken if it’s too long, to clean up junk data.
265
if len(deviceToken) > 128 {
266
_ = db.DeleteDeviceByKey(msg.DeviceKey)
267
+ return 400, fmt.Errorf("invalid device token, has been removed")
268
}
269
270
msg.DeviceToken = deviceToken
0 commit comments