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

Function removeMany

src/controllers/UserBookmark.controller.ts:154–161  ·  view source on GitHub ↗
({ ids }: { ids: BookmarkId[] })

Source from the content-addressed store, hash-verified

152 return res
153 },
154 async removeMany({ ids }: { ids: BookmarkId[] }) {
155 const userId = await getAuthedUserId()
156 const res = await db
157 .delete(userBookmarks)
158 .where(and(userLimiter(userId), inArray(userBookmarks.id, ids)))
159 .returning()
160 return res
161 },
162 /**
163 * 高级搜索书签列表
164 */

Callers

nothing calls this directly

Calls 2

getAuthedUserIdFunction · 0.90
userLimiterFunction · 0.70

Tested by

no test coverage detected