almost finished

This commit is contained in:
rafaelsideguide
2024-04-26 11:42:49 -03:00
parent 9c481e5e83
commit 06675d1fe3
4 changed files with 139 additions and 110 deletions
+2 -2
View File
@@ -83,11 +83,11 @@ export async function searchHelper(
return { success: true, error: "No page found", returnCode: 200 };
}
const { success, credit_usage } = await billTeam(
const billingResult = await billTeam(
team_id,
filteredDocs.length
);
if (!success) {
if (!billingResult.success) {
return {
success: false,
error: