* Fix CRC32 meta

* Properly store upload user info in meta @ upload
This commit is contained in:
Bryan Ashby 2017-02-12 00:24:24 -07:00
parent 50a5b8d78e
commit edb9d32acc
2 changed files with 20 additions and 11 deletions

View file

@ -522,7 +522,7 @@ function scanFile(filePath, options, iterator, cb) {
} else if('sha1' === hashName || 'md5' === hashName) {
stepInfo[hashName] = fileEntry.meta[`file_${hashName}`] = hashes[hashName].digest('hex');
} else if('crc32' === hashName) {
stepInfo.crc32 = fileEntry.meta.crc32 = hashes.crc32.finalize().toString(16);
stepInfo.crc32 = fileEntry.meta.file_crc32 = hashes.crc32.finalize().toString(16);
}
return nextHash(null);