From 7b61b5ef17e568e6fee97788c79959be05b606ad Mon Sep 17 00:00:00 2001 From: Ralf Kistner Date: Wed, 27 Nov 2024 13:04:29 -0700 Subject: [PATCH 1/2] Fix compact action. --- packages/service-core/src/entry/commands/compact-action.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/service-core/src/entry/commands/compact-action.ts b/packages/service-core/src/entry/commands/compact-action.ts index 12327fbaa..bfa0da4c1 100644 --- a/packages/service-core/src/entry/commands/compact-action.ts +++ b/packages/service-core/src/entry/commands/compact-action.ts @@ -29,7 +29,7 @@ export function registerCompactAction(program: Command) { return compactCommand.description('Compact storage').action(async (options) => { const buckets = options.buckets?.split(','); - if (buckets != null) { + if (buckets == null) { logger.info('Compacting storage for all buckets...'); } else { logger.info(`Compacting storage for ${buckets.join(', ')}...`); From c6e05b33a4be5e01c3167ef40c413734fb136379 Mon Sep 17 00:00:00 2001 From: Ralf Kistner Date: Wed, 27 Nov 2024 13:05:19 -0700 Subject: [PATCH 2/2] Add changeset. --- .changeset/dry-walls-sleep.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/dry-walls-sleep.md diff --git a/.changeset/dry-walls-sleep.md b/.changeset/dry-walls-sleep.md new file mode 100644 index 000000000..8a610a095 --- /dev/null +++ b/.changeset/dry-walls-sleep.md @@ -0,0 +1,6 @@ +--- +'@powersync/service-core': patch +'@powersync/service-image': patch +--- + +Fix compact action