All docs no error fix.

This commit is contained in:
mike12345567 2024-09-24 15:51:41 +01:00
parent ad60f8a811
commit a5cb1b39dc
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ export class DatabaseImpl implements Database {
try {
return (await db.list(params)) as AllDocsResponse<T>
} catch (err: any) {
if (err.status === 404) {
if (err.reason === DATABASE_NOT_FOUND) {
return {
offset: 0,
total_rows: 0,