MCPcopy
hub / github.com/kickscondor/fraidycat / noteUpdate

Function noteUpdate

src/js/storage.js:193–209  ·  view source on GitHub ↗
(list, isDone)

Source from the content-addressed store, hash-verified

191 },
192
193 noteUpdate(list, isDone) {
194 for (let id of list) {
195 this.updating[id] = {startedAt: new Date(), done: isDone}
196 }
197 let clearAll = false
198 for (let id in this.updating) {
199 clearAll = true
200 if (!this.updating[id].done) {
201 clearAll = false
202 break
203 }
204 }
205 if (clearAll) {
206 this.updating = {}
207 }
208 this.update({op: 'replace', path: '/updating', value: this.updating})
209 },
210
211 //
212 // Use Fraidyscrape to figure out the requests that need to made and build

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected