returning only active db hashes

pull/1856/head
antelle 2021-04-07 22:07:16 +02:00
parent 7086ddcf58
commit a9b83256c6
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,9 @@ const ProtocolHandlers = {
action: 'hash',
version: RuntimeInfo.version,
hash: firstFile.defaultGroupHash,
hashes: AppModel.instance.files.map((file) => file.defaultGroupHash)
hashes: AppModel.instance.files
.filter((file) => file.active && !file.backend)
.map((file) => file.defaultGroupHash)
});
} else {
return { action: 'get-databasehash', error: 'No open files', errorCode: '1' };