Skip to content

Commit

Permalink
(fix) mirroring UI endpoint (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay288 authored Oct 29, 2022
1 parent 75eb975 commit bd885a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/src/suricata_setup/ssh-services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export async function push_files({
id,
...rest
}: RESPONSE["data"] & { step: number }): Promise<RESPONSE> {
const endpoint = "api/v1/log-request/single"
let conn = new SSH_CONN(keypair, remote_machine_url, username)
let [key, raw] = createApiKey(`Metlo-collector-${id}`)
key.for = API_KEY_TYPE.AWS
Expand All @@ -77,7 +76,7 @@ export async function push_files({
put_data_file(
format(
`${__dirname}/../generics/scripts/metlo-ingestor-template.service`,
[`${process.env.BACKEND_URL}/${endpoint}`, raw],
[process.env.BACKEND_URL, raw],
),
filepath_ingestor,
)
Expand Down

0 comments on commit bd885a5

Please sign in to comment.