(type, obj, id)
| 325 | } |
| 326 | |
| 327 | async function storeObject (type, obj, id) { |
| 328 | if (obj === undefined) |
| 329 | return; |
| 330 | if (id === undefined) |
| 331 | id = obj.id; |
| 332 | if (id === undefined) |
| 333 | return; |
| 334 | const existing = await getObject(type, id); |
| 335 | if (!areEqual(obj, existing)) { |
| 336 | cur.cache[type][id] = obj; |
| 337 | await db.put(type + '_' + id, obj, {valueEncoding: 'json'}); |
| 338 | } |
| 339 | } |
| 340 | |
| 341 | function getCommitDate (callback) { |
| 342 | exec('git show -s --format=%ct', {cwd: settings.TGX_SOURCE_PATH}, (error, stdout, stderr) => { |
no test coverage detected