feat: category module done

This commit is contained in:
Innei
2021-09-06 15:19:28 +08:00
parent 07f4f19a86
commit f75e7eda6c
9 changed files with 273 additions and 52 deletions

View File

@@ -12,6 +12,6 @@ patch(async ({ models: { note, post, category } }) => {
},
)
}),
category.aggregate([{ $unset: 'count' }]),
category.updateMany({}, { $unset: { count: '' } }),
])
})