mirror of
https://github.com/tale/headplane.git
synced 2026-09-03 10:48:17 +00:00
fix(TALE-7): use the new integration methods in the code
This commit is contained in:
@@ -47,8 +47,8 @@ export async function action({ request }: ActionFunctionArgs) {
|
|||||||
const data = await request.json() as { acl: string }
|
const data = await request.json() as { acl: string }
|
||||||
await patchAcl(data.acl)
|
await patchAcl(data.acl)
|
||||||
|
|
||||||
if (context.integration?.sighup) {
|
if (context.integration?.onAclChange) {
|
||||||
await context.integration.sighup()
|
await context.integration.onAclChange(context.integration.context)
|
||||||
}
|
}
|
||||||
|
|
||||||
return json({ success: true })
|
return json({ success: true })
|
||||||
|
|||||||
@@ -57,8 +57,8 @@ export async function action({ request }: ActionFunctionArgs) {
|
|||||||
const data = await request.json() as Record<string, unknown>
|
const data = await request.json() as Record<string, unknown>
|
||||||
await patchConfig(data)
|
await patchConfig(data)
|
||||||
|
|
||||||
if (context.integration?.restart) {
|
if (context.integration?.onConfigChange) {
|
||||||
await context.integration.restart()
|
await context.integration.onConfigChange(context.integration.context)
|
||||||
}
|
}
|
||||||
|
|
||||||
return json({ success: true })
|
return json({ success: true })
|
||||||
|
|||||||
Reference in New Issue
Block a user