refactor(electron): cleanup secondary db logic (#6710)

This commit is contained in:
pengx17 committed 2024-04-26 10:57:09 +00:00
1 parent d015be24e6
commit 5d114ea965
17 files changed
+63 -1020

No files matched your search

@@ -127,7 +127,6 @@ describe('getWorkspaceMeta', () => {
expect(await getWorkspaceMeta(workspaceId)).toEqual({
id: workspaceId,
mainDBPath: path.join(workspacePath, 'storage.db'),
secondaryDBPath: sourcePath,
});
expect(
@@ -151,11 +150,4 @@ test('storeWorkspaceMeta', async () => {
expect(await fs.readJSON(path.join(workspacePath, 'meta.json'))).toEqual(
meta
);
await storeWorkspaceMeta(workspaceId, {
secondaryDBPath: path.join(tmpDir, 'test.db'),
});
expect(await fs.readJSON(path.join(workspacePath, 'meta.json'))).toEqual({
...meta,
secondaryDBPath: path.join(tmpDir, 'test.db'),
});
});