feat(db): implement bill_team RPC

This commit is contained in:
Gergő Móricz
2024-09-25 20:57:45 +02:00
parent c1f68c3e0a
commit f22ab5ffaf
7 changed files with 23 additions and 182 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, 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}`
);