We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a6903a + eeb3331 commit dbf64a6Copy full SHA for dbf64a6
src/Routers/PushRouter.js
@@ -1,6 +1,6 @@
1
-import PromiseRouter from '../PromiseRouter';
+import PromiseRouter from '../PromiseRouter';
2
import * as middleware from "../middlewares";
3
-import { Parse } from "parse/node";
+import { Parse } from "parse/node";
4
5
export class PushRouter extends PromiseRouter {
6
@@ -46,8 +46,7 @@ export class PushRouter extends PromiseRouter {
46
}
47
48
} else {
49
- throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED,
50
- 'Channels and query should be set at least one.');
+ throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED, 'Sending a push requires either "channels" or a "where" query.');
51
52
return where;
53
0 commit comments