initializing user

This commit is contained in:
counter 2023-01-16 22:02:21 -08:00
parent d8cfb8bd95
commit 76989b38e7

8
api.js
View file

@ -370,15 +370,15 @@ async function set_up_api_server(app) {
let return_payloads = [];
for(let payload of payload_fires.rows){
console.log(payload);
let secrets = await Secrets.findAndCountAll({
where: {
payload_id: payload.id
}
});
console.log(secrets);
payload.secrets = secrets.rows;
console.log(payload);
payload.secrets = [];
for(let secret of secrets.rows){
payload.secrets.push(secret);
}
return_payloads.push(payload);
}