mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
* Fix CRC32 meta
* Properly store upload user info in meta @ upload
This commit is contained in:
parent
50a5b8d78e
commit
edb9d32acc
2 changed files with 20 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue