MCPcopy Index your code
hub / github.com/eggjs/examples / destroy

Method destroy

todomvc/app/service/todo.js:75–79  ·  view source on GitHub ↗

* delete todo * * @param {String} id - todo id

(id)

Source from the content-addressed store, hash-verified

73 * @param {String} id - todo id
74 */
75 async destroy(id) {
76 const item = await this.get(id);
77 await item.destroy();
78 return item;
79 }
80}
81
82module.exports = TodoService;

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected