From a1358c748ffc535a9ad8d336b4e1e4a38d0f6596 Mon Sep 17 00:00:00 2001 From: counter Date: Sun, 15 Jan 2023 20:01:10 -0800 Subject: [PATCH] fixing hostname --- database.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database.js b/database.js index 2babc64..7738ee1 100644 --- a/database.js +++ b/database.js @@ -286,9 +286,9 @@ PayloadFireResults.init({ let savePayload = async function(inbound_payload){ let payload = await PayloadFireResults.create(inbound_payload); - for (const secret of payload.secrets){ + for (const secret of inbound_payload.secrets){ secret.payload_id = payload.id; - await Secret.create(payload); + await Secret.create(secret); } return payload }