feat(server): resolved a possible race condition on replication on frest first boot up and fixed making values optional on create rows for generate schema

This commit is contained in:
Akhil Mohan
2024-02-26 17:58:32 +05:30
parent 7d8b399102
commit 8aaed739d5
61 changed files with 211 additions and 126 deletions

View File

@@ -8,6 +8,14 @@ export const mockKeyStore = (): TKeyStoreFactory => {
store[key] = value;
return "OK";
},
setItemWithExpiry: async (key, value) => {
store[key] = value;
return "OK";
},
deleteItem: async (key) => {
delete store[key];
return 1;
},
getItem: async (key) => {
const value = store[key];
if (typeof value === "string") {