Fix manual launch script for changed room backing store interface.

This commit is contained in:
gnuxie
2025-03-12 18:29:05 +00:00
parent 25f39e20d0
commit b50033ba4a
+2 -3
View File
@@ -15,14 +15,13 @@
import { draupnirClient, makeBotModeToggle } from "./mjolnirSetupUtils";
import { configRead } from "../../src/config";
import { SqliteRoomStateBackingStore } from "../../src/backingstore/better-sqlite3/SqliteRoomStateBackingStore";
import path from "path";
import { DefaultEventDecoder } from "matrix-protection-suite";
void (async () => {
const config = configRead();
const toggle = await makeBotModeToggle(config, {
backingStore: new SqliteRoomStateBackingStore(
path.join(config.dataPath, "room-state-backing-store.db"),
backingStore: SqliteRoomStateBackingStore.create(
config.dataPath,
DefaultEventDecoder
),
allowSafeMode: true,