From 2655edee5d596232c2dc9177ab45c0f486de9399 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 13 Oct 2017 18:39:51 +0200 Subject: [PATCH] [fix] added in modules.json fetchDefault::motheure_simple --- build/api/module/fetchDefault.php | 2 +- config/modules.json | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/build/api/module/fetchDefault.php b/build/api/module/fetchDefault.php index 306a137..6488ef6 100644 --- a/build/api/module/fetchDefault.php +++ b/build/api/module/fetchDefault.php @@ -153,7 +153,7 @@ ]); // {2} Process + get response // - $upd_res = $log_req->dispatch(); + $upd_res = $upd_req->dispatch(); /* (3) Retourne le nombre d'entrées enregistrées */ return [ 'saved' => $count ]; diff --git a/config/modules.json b/config/modules.json index 229d1dc..5dcdff3 100755 --- a/config/modules.json +++ b/config/modules.json @@ -572,6 +572,17 @@ "output": { "saved": { "description": "Nombre d'entrées enregistrées", "type": "id" } } + }, + + "POST::motheure_simple": { + "description": "Enregistrement du compte horaire de l'e-tree SIMPLE du module MOTHEURE", + "permissions": [["sats"]], + "parameters": { + "data": { "descripton": "Cycles horaires reçus", "type": "mixed" } + }, + "output": { + "saved": { "description": "Nombre d'entrées enregistrées", "type": "id" } + } } },