From b6878f42406fd1393a9b97b61a994ad13790b7cb Mon Sep 17 00:00:00 2001 From: rbisson <remi.bisson@inrae.fr> Date: Fri, 13 Dec 2024 17:11:36 +0100 Subject: [PATCH] [SearchHistoryService] removed description from mandatory parameters list in create method --- app/dal/searchHistoryService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dal/searchHistoryService.js b/app/dal/searchHistoryService.js index 0fb9df3..1671d4d 100644 --- a/app/dal/searchHistoryService.js +++ b/app/dal/searchHistoryService.js @@ -5,7 +5,7 @@ const { SearchHistory } = require('../models/UserHistory'); const SearchHistoryService = { async create(ctx) { - if (!ctx || !ctx.kcId || !ctx.query || !ctx.name || !ctx.uiStructure || !ctx.description) { + if (!ctx || !ctx.kcId || !ctx.query || !ctx.name || !ctx.uiStructure) { const error = new Error("Required parameters are missing."); error.status = 400; throw error; -- GitLab