fix(TALE-7): use the new integration methods in the code

This commit is contained in:
Aarnav Tale 2024-07-10 19:38:44 -04:00
parent ea8ecfb28f
commit 6b278309ed
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -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 })

View File

@ -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 })