Call this code:
```
const databaseModule = await getDatabaseModule();
let data = await databaseModule.schedule({
type: workerRequestMessageTypes.GET_CLIENT_STORE,
});
console.log(data.store.keyservers);
await databaseModule.schedule({
type: workerRequestMessageTypes.PROCESS_STORE_OPERATIONS,
storeOperations: {
keyserverStoreOperations: [
{
type: 'replace_keyserver',
payload: {
id: '1',
keyserverInfo: 'fdfd',
},
},
{
type: 'replace_keyserver',
payload: {
id: '2',
keyserverInfo: 'fdfd',
},
},
],
},
});
data = await databaseModule.schedule({
type: workerRequestMessageTypes.GET_CLIENT_STORE,
});
console.log(data.store.keyservers);
await databaseModule.schedule({
type: workerRequestMessageTypes.PROCESS_STORE_OPERATIONS,
storeOperations: {
keyserverStoreOperations: [
{
type: 'replace_keyserver',
payload: {
id: '2',
keyserverInfo: 'fdfd45454545',
},
},
],
},
});
data = await databaseModule.schedule({
type: workerRequestMessageTypes.GET_CLIENT_STORE,
});
console.log(data.store.keyservers);
await databaseModule.schedule({
type: workerRequestMessageTypes.PROCESS_STORE_OPERATIONS,
storeOperations: {
keyserverStoreOperations: [
{
type: 'remove_keyserver',
payload: {
id: '1',
},
},
],
},
});
data = await databaseModule.schedule({
type: workerRequestMessageTypes.GET_CLIENT_STORE,
});
console.log(data.store.keyservers);
await databaseModule.schedule({
type: workerRequestMessageTypes.PROCESS_STORE_OPERATIONS,
storeOperations: {
keyserverStoreOperations: [
{
type: 'remove_all_keyserver',
},
],
},
});
data = await databaseModule.schedule({
type: workerRequestMessageTypes.GET_CLIENT_STORE,
});
console.log(data.store.keyservers);
```