aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2024-10-20 16:00:17 +0000
committerMohamed Bassem <me@mbassem.com>2024-10-20 16:00:17 +0000
commit4086c37b830c3c4141b37052e3c192a750470084 (patch)
tree7bab9bff1bdc7f7b4b48987b68a6b99b7b6fcfee /packages/shared
parente89a38680532c3ab72ef26dfe88bb64476b709ab (diff)
downloadkarakeep-4086c37b830c3c4141b37052e3c192a750470084.tar.zst
fix: Improve field names in the tag APIs
Diffstat (limited to 'packages/shared')
-rw-r--r--packages/shared/types/tags.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/shared/types/tags.ts b/packages/shared/types/tags.ts
index 7828c645..54dc3eb5 100644
--- a/packages/shared/types/tags.ts
+++ b/packages/shared/types/tags.ts
@@ -12,8 +12,8 @@ export type ZBookmarkTags = z.infer<typeof zBookmarkTagSchema>;
export const zGetTagResponseSchema = z.object({
id: z.string(),
name: z.string(),
- count: z.number(),
- countAttachedBy: z.record(zAttachedByEnumSchema, z.number()),
+ numBookmarks: z.number(),
+ numBookmarksByAttachedType: z.record(zAttachedByEnumSchema, z.number()),
});
export type ZGetTagResponse = z.infer<typeof zGetTagResponseSchema>;