mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 22:25:24 +00:00
feat: give plugins their own tables, migrations and sync entities
This commit is contained in:
1 parent
5796186a1c
commit
c496a093ca
47 files changed
+32595
-290
No files matched your search
@@ -30,6 +30,9 @@ vi.mock("../../database/repositories/factory.js", () => ({
|
||||
delete: async (pluginId: string, key: string) =>
|
||||
kvStore.delete(`${pluginId}:${key}`),
|
||||
listKeys: async () => [...kvStore.keys()],
|
||||
countKeys: async (pluginId: string) =>
|
||||
[...kvStore.keys()].filter((key) => key.startsWith(`${pluginId}:`))
|
||||
.length,
|
||||
}),
|
||||
}));
|
||||
|
||||
|
||||
Reference in new issue
Block a user