From 380d9a9ce876bee8bcd45a4d79bf05bcf0fa45ba Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Thu, 11 Jul 2019 08:17:32 +0200 Subject: [PATCH] fixed file hash generation converting id to string --- loopback/server/boot/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loopback/server/boot/storage.js b/loopback/server/boot/storage.js index a2434a5e4..d34804059 100644 --- a/loopback/server/boot/storage.js +++ b/loopback/server/boot/storage.js @@ -13,6 +13,6 @@ module.exports = app => { }; storageConnector.getPathHash = function(id) { - return md5(id).substring(0, 3); + return md5(id.toString()).substring(0, 3); }; };