MCPcopy
hub / github.com/apache/pouchdb / add

Method add

lib/index-browser.js:2869–2878  ·  view source on GitHub ↗
(task)

Source from the content-addressed store, hash-verified

2867 }
2868
2869 add(task) {
2870 const id = uuid.v4();
2871 this.tasks[id] = {
2872 id,
2873 name: task.name,
2874 total_items: task.total_items,
2875 created_at: new Date().toJSON()
2876 };
2877 return id;
2878 }
2879
2880 get(id) {
2881 return this.tasks[id];

Callers 8

_compactMethod · 0.45
initFunction · 0.45
sequentializeFunction · 0.45
processKeyValueDocsFunction · 0.45
createTaskFunction · 0.45
processBatchFunction · 0.45
localViewCleanupFunction · 0.45
queryPromisedFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected