Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 9 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"fs-extra": "^8.1.0",
"http": "0.0.0",
"keycloak-backend": "^3.0.0",
"md5": "^2.2.1",
"nano": "^8.1.0",
"object-hash": "^3.0.0",
"p-queue": "^6.2.1",
"split2": "^3.1.1",
"to-array-buffer": "^3.2.0",
Expand Down
4 changes: 2 additions & 2 deletions plugins/CouchDB.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const dcmjs = require('dcmjs');
const Axios = require('axios');
const http = require('http');
const fs = require('fs');
const md5 = require('md5');
const hash = require('object-hash');

const config = require('../config/index');
const viewsjs = require('../config/views');
Expand Down Expand Up @@ -812,7 +812,7 @@ async function couchdb(fastify, options) {
if (dicomDB === undefined) dicomDB = fastify.couch.db.use(config.db);
// TODO: Check if this needs to be Buffer or not.
const body = Buffer.from(arrayBuffer);
const incomingMd5 = md5(body);
const incomingMd5 = hash(body);
const dicomData = dcmjs.data.DicomMessage.readFile(arrayBuffer, {});
const couchDoc = {
_id: dicomData.dict['00080018'].Value[0],
Expand Down