From 5641a3968849dc95f59142110c003bf7335b84a8 Mon Sep 17 00:00:00 2001 From: Nino van der Laan Date: Tue, 17 Oct 2023 15:34:21 +0200 Subject: [PATCH] add crypto require --- beer-import/services/processData.js | 1 + 1 file changed, 1 insertion(+) diff --git a/beer-import/services/processData.js b/beer-import/services/processData.js index 8d27f468c..29666a989 100644 --- a/beer-import/services/processData.js +++ b/beer-import/services/processData.js @@ -4,6 +4,7 @@ const moment = require('moment') moment.locale('nl') const validateKeys = require('./validateKeys') const mandatoryKeys = ['id', 'brand', 'store', 'pricing', 'volume', 'rawValidity'] +const crypto = require('crypto'); // TODO: Fix this // const beer = require('../models/beer') // const mandatoryKeys = beer.schema._requiredpaths