implemented lock-database

This commit is contained in:
antelle 2021-04-07 22:49:23 +02:00
parent a9b83256c6
commit ee03435ca7
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 12 additions and 0 deletions

View File

@ -112,6 +112,18 @@ const ProtocolHandlers = {
} else {
return { action: 'get-databasehash', error: 'No open files', errorCode: '1' };
}
},
'lock-database'(request) {
decryptRequest(request);
Events.emit('lock-workspace');
return encryptResponse(request, {
action: 'lock-database',
error: 'No open files',
errorCode: '1'
});
}
};