returning the list of hashes

This commit is contained in:
antelle 2021-04-07 22:04:21 +02:00
parent 26d226bb17
commit 7086ddcf58
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@ const ProtocolHandlers = {
return encryptResponse(request, {
action: 'hash',
version: RuntimeInfo.version,
hash: firstFile.defaultGroupHash
hash: firstFile.defaultGroupHash,
hashes: AppModel.instance.files.map((file) => file.defaultGroupHash)
});
} else {
return { action: 'get-databasehash', error: 'No open files', errorCode: '1' };