Still working on trk delete.
This commit is contained in:
1 parent
45f7c797e7
commit
9931887f03
6 files changed
+41
-14
No files matched your search
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user