From 76fdbc0d130db27ae947080fd46e05a1d9f91cb5 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sun, 24 Jul 2022 19:01:47 +0100 Subject: [PATCH] BUG: tracking down a post validation hook bug --- server/auth/validation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/auth/validation.js b/server/auth/validation.js index 8bd0f29..c873ff7 100644 --- a/server/auth/validation.js +++ b/server/auth/validation.js @@ -64,13 +64,13 @@ const route = async (req, res) => { }); if (!probe.ok) { - throw `Could not probe the post validation hook: ${hook}`; + throw `Could not probe the post validation hook: ${hook} with accountIndex = ${account.index}`; } //discard the result }); - Promise.all(promises); + await Promise.all(promises); } catch(e) { console.error('HOOK_POST_VALIDATION_ARRAY is not a valid array of strings in JSON format: ' + e);