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 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(', ')}...`);