Fix hashing

This commit is contained in:
Jordan Prince 2021-04-05 09:15:51 -05:00
parent 4ee2908093
commit 2b5662e55a
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ exports.uploadFile = async (req, res) => {
const data = fs.readFileSync(filepath);
// Have to get separate Buffer since buffers are stateful
const hashSum = crypto.createHash('sha256');
hashSum.update(data);
hashSum.update(data.toString());
const hex = hashSum.digest('hex');
if (!txn.memoMessages.find(m => m === hex)) {