(locations, log, cb)
| 344 | */ |
| 345 | |
| 346 | function _getLastModified(locations, log, cb) { |
| 347 | const reqUids = log.getSerializedUids(); |
| 348 | return dataClient.head(locations, reqUids, (err, data) => { |
| 349 | if (err) { |
| 350 | log.error('head object request failed', { |
| 351 | method: 'headObject', |
| 352 | error: err, |
| 353 | }); |
| 354 | return cb(err); |
| 355 | } |
| 356 | return cb(null, data.LastModified || data.lastModified); |
| 357 | }); |
| 358 | } |
| 359 | |
| 360 | function headObject(request, response, log, cb) { |
| 361 | let locations; |
no test coverage detected