MCPcopy
hub / github.com/seanprashad/leetcode-patterns / doUpload

Function doUpload

src/lib/sync.ts:63–66  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

61
62// Upload current localStorage state to Supabase
63async function doUpload(userId: string): Promise<void> {
64 lastUploadAt = Date.now();
65 await uploadProgress(userId);
66}
67
68// Debounced upload — call after every save
69let uploadTimer: ReturnType<typeof setTimeout> | null = null;

Callers 2

scheduleUploadFunction · 0.85
flushPendingUploadFunction · 0.85

Calls 1

uploadProgressFunction · 0.85

Tested by

no test coverage detected