Skip to content

Commit 2c18ad2

Browse files
authored
Fix compact action (#139)
* Fix compact action. * Add changeset.
1 parent 49e99f4 commit 2c18ad2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/dry-walls-sleep.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@powersync/service-core': patch
3+
'@powersync/service-image': patch
4+
---
5+
6+
Fix compact action

packages/service-core/src/entry/commands/compact-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function registerCompactAction(program: Command) {
2929

3030
return compactCommand.description('Compact storage').action(async (options) => {
3131
const buckets = options.buckets?.split(',');
32-
if (buckets != null) {
32+
if (buckets == null) {
3333
logger.info('Compacting storage for all buckets...');
3434
} else {
3535
logger.info(`Compacting storage for ${buckets.join(', ')}...`);

0 commit comments

Comments
 (0)