initializing user

This commit is contained in:
counter 2023-01-16 21:57:27 -08:00
parent 0d9ec3b589
commit d8cfb8bd95

3
api.js
View file

@ -370,12 +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);
return_payloads.push(payload);
}