From 5860551daa0f60103ad24e93da29f401a653f144 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 29 Mar 2024 22:05:35 +0100 Subject: Updated 20 files, added 6 files, deleted 144 files and renamed .idea/ponycule.iml (automated) --- api/pluralkit-integration.php | 64 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 api/pluralkit-integration.php (limited to 'api/pluralkit-integration.php') diff --git a/api/pluralkit-integration.php b/api/pluralkit-integration.php new file mode 100644 index 0000000..9b0033d --- /dev/null +++ b/api/pluralkit-integration.php @@ -0,0 +1,64 @@ + $system + ]); + createJob("UpdateAssets", [ + "type" => "members" + ]); +} + +if ($input["type"] === "UPDATE_SYSTEM") { + createJob("PKSystem", [ + "system" => $system + ]); + createJob("UpdateAssets", [ + "type" => "system" + ]); +} + +if ($input["type"] === "CREATE_SWITCH" || $input["type"] === "UPDATE_SWITCH" || $input["type"] === "DELETE_SWITCH") { + createJob("PKFronters", [ + "system" => $system + ]); + createJob("PKSwitches", [ + "system" => $system + ]); + createJob("FrontersNotification", [ + "system" => $system + ]); +} -- cgit