dfssdfsfdsf
This commit is contained in:
ANDJ committed 2026-04-09 21:00:04 +02:00
1 parent 983b67e6fc
commit 89bc86b615
27 files changed
+2921 -408

No files matched your search

+12
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')
)
}