feat(console): add support actions (#33492)
This commit is contained in:
parent
633fc6fc03
commit
ad3651d8f1
14 changed files with 255 additions and 156 deletions
|
|
@ -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 }),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue