Refactor Attchemnt Upload and fix bug with signing

This commit is contained in:
Mo Tarbin
2026-07-18 02:16:42 -04:00
parent bf6474a488
commit a6fb3c87c4
15 changed files with 601 additions and 163 deletions

View File

@@ -138,6 +138,13 @@ class ApiClient {
} catch (e) {
console.error('Error clearing offline data on logout', e)
}
try {
// Dynamic import sidesteps the ApiClient <-> ImageCache module cycle
const { clearImageCache } = await import('./ImageCache')
await clearImageCache()
} catch (e) {
console.error('Error clearing image cache on logout', e)
}
try {
await logout()
} catch (e) {
@@ -252,7 +259,7 @@ class ApiClient {
}
return this.request(endpoint, {
options: { ...options },
...options,
method: 'POST',
body: data ? data : undefined,
})