({ body, query, pushStatus, applicationId, UTCOffset }: any)
| 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, |
no test coverage detected