(params)
| 216 | return Promise.resolve(ret.rawData); |
| 217 | } |
| 218 | _noItemFound(params) { |
| 219 | let { key, id, autoSync, syncParams } = params; |
| 220 | if(this.sync[key]) { |
| 221 | if(autoSync) { |
| 222 | return new Promise((resolve, reject) => this.sync[key]({ id, syncParams, resolve, reject })); |
| 223 | } |
| 224 | return Promise.resolve({ syncId: id }); |
| 225 | } |
| 226 | return Promise.reject(new NotFoundError(JSON.stringify(params))); |
| 227 | } |
| 228 | _loadMapItem(params) { |
| 229 | let { ret, key, id, autoSync, batched, syncInBackground, syncParams } = params; |
| 230 | if(ret === null || ret === undefined) { |
no outgoing calls
no test coverage detected