mirror of
https://github.com/trufflesecurity/xsshunter
synced 2024-11-10 06:44:13 +00:00
initializing user
This commit is contained in:
parent
d8cfb8bd95
commit
76989b38e7
1 changed files with 4 additions and 4 deletions
8
api.js
8
api.js
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue