Still working on trk delete.

This commit is contained in:
vdv committed 2023-01-09 14:23:41 +01:00
1 parent 45f7c797e7
commit 9931887f03
6 files changed
+41 -14

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ export const deleteTrk = async (params: any) => {
const { id } = params;
const docs = await getFamily(id, { include_docs: false });
console.log({ caller: 'deleteTrk' }, id, docs);
const deletedDocs = docs.rows.map((doc: any) => ({
const deletedDocs = docs.rows.reverse().map((doc: any) => ({
_deleted: true,
_id: doc.id,
_rev: doc.value.rev,