⬆️ (lite-note) migrate to pnpm and upgrade every outdated libs

This commit is contained in:
Julien Calixte
2023-07-01 22:39:04 +02:00
parent 54e9694fc6
commit e0618e0df6
15 changed files with 10369 additions and 12431 deletions

View File

@@ -99,7 +99,15 @@ class Data {
keys: keys.map((key) => this.generateId(prefix, key))
})
return response.rows.map((row) => row.doc).filter((doc) => !!doc) as T[]
return response.rows
.map((row) => {
if ('error' in row) {
return null
}
return row.doc
})
.filter((doc) => !!doc) as T[]
}
const response = await this.locale.allDocs({