MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / saveQueue

Method saveQueue

src/services/AutoArchiveService.ts:288–292  ·  view source on GitHub ↗

* Save the auto-archive queue to plugin data

(queue: PendingAutoArchive[])

Source from the content-addressed store, hash-verified

286 * Save the auto-archive queue to plugin data
287 */
288 private async saveQueue(queue: PendingAutoArchive[]): Promise<void> {
289 const data = (await this.plugin.loadData()) || {};
290 data.autoArchiveQueue = queue;
291 await this.plugin.saveData(data);
292 }
293
294 /**
295 * Clear all pending auto-archives (for testing or emergency reset)

Callers 4

scheduleAutoArchiveMethod · 0.95
cancelAutoArchiveMethod · 0.95
processQueueMethod · 0.95
clearQueueMethod · 0.95

Calls 2

loadDataMethod · 0.45
saveDataMethod · 0.45

Tested by

no test coverage detected