(task)
| 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]; |
no outgoing calls
no test coverage detected