From 4086c37b830c3c4141b37052e3c192a750470084 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 20 Oct 2024 16:00:17 +0000 Subject: fix: Improve field names in the tag APIs --- apps/cli/src/commands/tags.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/cli/src/commands') diff --git a/apps/cli/src/commands/tags.ts b/apps/cli/src/commands/tags.ts index c2c1dd3a..14cb7f10 100644 --- a/apps/cli/src/commands/tags.ts +++ b/apps/cli/src/commands/tags.ts @@ -21,14 +21,14 @@ tagsCmd try { const tags = (await api.tags.list.query()).tags; - tags.sort((a, b) => b.count - a.count); + tags.sort((a, b) => b.numBookmarks - a.numBookmarks); if (getGlobalOptions().json) { printObject(tags); } else { const data: string[][] = [["Id", "Name", "Num bookmarks"]]; tags.forEach((tag) => { - data.push([tag.id, tag.name, tag.count.toString()]); + data.push([tag.id, tag.name, tag.numBookmarks.toString()]); }); console.log( table(data, { -- cgit v1.2.3-70-g09d2