From 714da96ee54f80eb8b2db899485b591ffe65f848 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Wed, 16 Mar 2022 08:18:09 +0000 Subject: [PATCH] developer and published apps usage quota migrations --- .../bbui/src/ProgressBar/ProgressBar.svelte | 8 +-- ...{userBuildersView.ts => developerQuota.ts} | 4 +- .../functions/publishedAppsQuota.ts | 13 ++++ .../functions/usageQuotas/syncDevelopers.ts | 19 ++++++ .../usageQuotas/syncPublishedApps.ts | 21 ++++++ packages/server/src/migrations/index.ts | 12 +++- .../controllers/global/{users.js => users.ts} | 65 ++++++++++--------- 7 files changed, 102 insertions(+), 40 deletions(-) rename packages/server/src/migrations/functions/{userBuildersView.ts => developerQuota.ts} (56%) create mode 100644 packages/server/src/migrations/functions/publishedAppsQuota.ts create mode 100644 packages/server/src/migrations/functions/usageQuotas/syncDevelopers.ts create mode 100644 packages/server/src/migrations/functions/usageQuotas/syncPublishedApps.ts rename packages/worker/src/api/controllers/global/{users.js => users.ts} (82%) diff --git a/packages/bbui/src/ProgressBar/ProgressBar.svelte b/packages/bbui/src/ProgressBar/ProgressBar.svelte index 221453d428..16125b3e68 100644 --- a/packages/bbui/src/ProgressBar/ProgressBar.svelte +++ b/packages/bbui/src/ProgressBar/ProgressBar.svelte @@ -16,11 +16,11 @@ easing: easing, }) - $: if (value) $progress = value + $: if (value || value === 0) $progress = value
{/if} - {#if value} + {#if value || value === 0}
@@ -47,7 +47,7 @@