Skip to content

Commit

Permalink
fix: don't return data on leafwatch
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Jul 8, 2024
1 parent f56423a commit dfd41af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/routes/leafwatch/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ export const post: Handler = async (req, res) => {
});

logger.info(
`Ingested event to Leafwatch - ${values.name} - ${values.actor}`
`Ingested event to Leafwatch - ${values.name} - ${values.actor} - ${result.query_id}`
);

return res.status(200).json({ id: result.query_id, success: true });
return res.status(200);
} catch (error) {
return catchedError(res, error);
}
Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/routes/leafwatch/impressions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ export const post: Handler = async (req, res) => {
values
});
logger.info(
`Ingested ${result.summary?.result_rows} impressions to Leafwatch`
`Ingested ${result.summary?.result_rows} impressions to Leafwatch - ${result.query_id}`
);

return res.status(200).json({ id: result.query_id, success: true });
return res.status(200);
} catch (error) {
return catchedError(res, error);
}
Expand Down

0 comments on commit dfd41af

Please sign in to comment.