MCPcopy
hub / github.com/parse-community/parse-server / run

Method run

src/Push/PushWorker.js:43–55  ·  view source on GitHub ↗
({ body, query, pushStatus, applicationId, UTCOffset }: any)

Source from the content-addressed store, hash-verified

41 }
42
43 run({ body, query, pushStatus, applicationId, UTCOffset }: any): Promise<*> {
44 const config = Config.get(applicationId);
45 const auth = master(config);
46 const where = utils.applyDeviceTokenExists(query.where);
47 delete query.where;
48 pushStatus = pushStatusHandler(config, pushStatus.objectId);
49 return rest.find(config, auth, '_Installation', where, query).then(({ results }) => {
50 if (results.length == 0) {
51 return;
52 }
53 return this.sendToAdapter(body, results, pushStatus, config, UTCOffset);
54 });
55 }
56
57 sendToAdapter(
58 body: any,

Callers 1

constructorMethod · 0.95

Calls 5

sendToAdapterMethod · 0.95
masterFunction · 0.90
pushStatusHandlerFunction · 0.90
findMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected