MCPcopy Create free account
hub / github.com/error311/FileRise / fetchTrash

Function fetchTrash

public/js/trashRestoreDelete.js:146–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144}
145
146async function fetchTrash() {
147 if (trashFetchPromise) return trashFetchPromise;
148 trashFetchPromise = fetch(ENDPOINTS.list, { credentials: "include" })
149 .then(res => {
150 if (!res.ok) throw new Error(`HTTP ${res.status}`);
151 return res.json();
152 })
153 .finally(() => {
154 trashFetchPromise = null;
155 });
156 return trashFetchPromise;
157}
158
159function updateRowSelection(row, checked) {
160 row.classList.toggle("selected", checked);

Callers 3

loadTrashItemsFunction · 0.85
autoPurgeOldTrashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected