feat(console): add support actions (#33492)

This commit is contained in:
Victor Navarro 2026-06-24 12:06:51 +02:00 committed by GitHub
commit ad3651d8f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 255 additions and 156 deletions

View file

@ -147,6 +147,12 @@ export namespace Share {
}
})
export const removeAdmin = fn(Info.pick({ id: true }), async (body) => {
const share = await get(body.id)
if (!share) throw new Errors.NotFound(body.id)
await remove({ id: share.id, secret: share.secret })
})
export const sync = fn(
z.object({
share: Info.pick({ id: true, secret: true }),