MCPcopy Create free account
hub / github.com/Y80/bmm / remove

Function remove

src/controllers/UserTag.controller.ts:96–100  ·  view source on GitHub ↗
(tag: Pick<SelectUserTag, 'id'>)

Source from the content-addressed store, hash-verified

94 },
95
96 async remove(tag: Pick<SelectUserTag, 'id'>) {
97 const userId = await getAuthedUserId()
98 const res = await db.delete(userTags).where(limiter(userId, tag.id)).returning()
99 return res
100 },
101
102 async removeMany({ ids }: { ids: TagId[] }) {
103 const userId = await getAuthedUserId()

Callers

nothing calls this directly

Calls 2

getAuthedUserIdFunction · 0.90
limiterFunction · 0.85

Tested by

no test coverage detected