fix(api): playground scrape errors

This commit is contained in:
Gergő Móricz
2024-09-26 22:28:14 +02:00
parent 8d44cb33bb
commit e98f858eb6
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ export async function mapController(
// remove duplicates that could be due to http/https or www
links = removeDuplicateUrls(links);
billTeam(req.auth.team_id, req.acuc.sub_id, 1).catch((error) => {
billTeam(req.auth.team_id, req.acuc?.sub_id, 1).catch((error) => {
Logger.error(
`Failed to bill team ${req.auth.team_id} for 1 credit: ${error}`
);