dfssdfsfdsf
This commit is contained in:
2026-04-09 21:00:04 +02:00
parent 983b67e6fc
commit 89bc86b615
27 changed files with 2921 additions and 408 deletions

View File

@@ -0,0 +1,12 @@
/**
* Detect Appwrite errors when a collection/database resource is missing.
*/
export function isAppwriteCollectionMissing(err) {
if (!err) return false
const msg = typeof err.message === 'string' ? err.message : ''
return (
err.code === 404 ||
err.type === 'collection_not_found' ||
msg.includes('Collection with the requested ID')
)
}