Skip to content

Commit

Permalink
fix: Fixed get bussiness products (close #1665)
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Dec 24, 2023
1 parent 9176f6b commit 590e29c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/controller/orderController.ts
Expand Up @@ -70,10 +70,8 @@ export async function getBusinessProfilesProducts(req: Request, res: Response) {
try {
const results: any = [];

for (const contato of phone) {
const result = await req.client.getBusinessProfilesProducts(contato);
results.push(result);
}
const result = await req.client.getBusinessProfilesProducts(phone);
results.push(result);

returnSucess(res, session, phone, results);
} catch (error) {
Expand Down

0 comments on commit 590e29c

Please sign in to comment.