fix(TALE-7): use the new integration methods in the code
This commit is contained in:
parent
ea8ecfb28f
commit
6b278309ed
@ -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 })
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user