Skip to content

Commit bc9975d

Browse files
committed
Use the correct database for the compact action.
1 parent 0666dd6 commit bc9975d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function registerCompactAction(program: Command) {
3434
const client = mongo.createMongoClient(storage);
3535
await client.connect();
3636
try {
37-
const psdb = new PowerSyncMongo(client);
37+
const psdb = new PowerSyncMongo(client, { database: storage.database });
3838
const bucketStorage = new MongoBucketStorage(psdb, { slot_name_prefix: config.slot_name_prefix });
3939
const active = await bucketStorage.getActiveSyncRules();
4040
if (active == null) {

0 commit comments

Comments
 (0)