MCPcopy Create free account
hub / github.com/TGX-Android/Publisher / storeObject

Function storeObject

main.js:327–339  ·  view source on GitHub ↗
(type, obj, id)

Source from the content-addressed store, hash-verified

325}
326
327async 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
341function getCommitDate (callback) {
342 exec('git show -s --format=%ct', {cwd: settings.TGX_SOURCE_PATH}, (error, stdout, stderr) => {

Callers 7

traceMaxApkVersionCodeFunction · 0.85
traceDurationFunction · 0.85
messageCallbackFunction · 0.85
queryCallbackFunction · 0.85

Calls 2

getObjectFunction · 0.85
areEqualFunction · 0.85

Tested by

no test coverage detected