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

Function tickOnce

public/js/folderManager.js:3187–3194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3185 setCryptoUiMinimized(!!minimized);
3186
3187 const tickOnce = async () => {
3188 const resp = await fetchWithCsrf(withBase('/api/folder/encryptionJobTick.php'), {
3189 method: 'POST',
3190 headers: { 'Content-Type': 'application/json' },
3191 body: JSON.stringify({ jobId, maxFiles: 1 })
3192 });
3193 return safeJson(resp);
3194 };
3195
3196 const statusOnce = async () => {
3197 const resp = await fetch(withBase(`/api/folder/encryptionJobStatus.php?jobId=${encodeURIComponent(jobId)}`), { credentials: 'include' });

Callers 1

tickWithHeartbeatFunction · 0.85

Calls 3

fetchWithCsrfFunction · 0.85
withBaseFunction · 0.85
safeJsonFunction · 0.70

Tested by

no test coverage detected