From e6d65bd65d2525549aeb9bdb0627b834244dd764 Mon Sep 17 00:00:00 2001 From: Michael Bryzek Date: Sat, 22 Jun 2024 08:56:51 -0400 Subject: [PATCH] Purge subscriptions as we purge orders --- api/app/processor/PurgeDeletedProcessor.scala | 1 + generated/app/ApicollectiveApibuilderTaskV0MockClient.scala | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/api/app/processor/PurgeDeletedProcessor.scala b/api/app/processor/PurgeDeletedProcessor.scala index d22420295..cebd79272 100644 --- a/api/app/processor/PurgeDeletedProcessor.scala +++ b/api/app/processor/PurgeDeletedProcessor.scala @@ -61,6 +61,7 @@ class PurgeDeletedProcessor @Inject()( delete(Table.guid("public", "organization_domains"))(_.equals("organization_guid", row.pkey)) delete(Table.guid("public", "organization_logs"))(_.equals("organization_guid", row.pkey)) delete(Table.guid("public", "applications"))(_.equals("organization_guid", row.pkey)) + delete(Table.guid("public", "subscriptions"))(_.equals("organization_guid", row.pkey)) } debug("done") diff --git a/generated/app/ApicollectiveApibuilderTaskV0MockClient.scala b/generated/app/ApicollectiveApibuilderTaskV0MockClient.scala index a73236172..b47ce8414 100644 --- a/generated/app/ApicollectiveApibuilderTaskV0MockClient.scala +++ b/generated/app/ApicollectiveApibuilderTaskV0MockClient.scala @@ -49,6 +49,8 @@ package io.apibuilder.task.v0.mock { guid = _root_.java.util.UUID.randomUUID ) + def makeEmailData(): io.apibuilder.task.v0.models.EmailData = io.apibuilder.task.v0.mock.Factories.makeEmailDataApplicationCreated() + } -} +} \ No newline at end of file