Skip to content

Commit

Permalink
fix(hapi): apply fixes in not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Torresmorah committed Mar 23, 2023
1 parent a9057f1 commit 5757924
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hapi/src/services/health-check-history.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const updateEndpointsHealthHistory = async (endpoints, date) => {
}
}
`
updates = endpoints.map(endpoint => ({
const updates = endpoints.map(endpoint => ({
where: {
_and: [{ value: { _eq: endpoint.value } }, { date: { _eq: date } }]
},
Expand Down
2 changes: 1 addition & 1 deletion hapi/src/services/producer.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const syncEndpoints = async () => {
const endpointsHealth = async (endpoints, producer_id) => {
const checkedList = []

for (index in endpoints) {
for (let index in endpoints) {
const endpoint = { ...endpoints[index] }
const repeatedIndex = checkedList.findIndex(
(info) => info.value === endpoint.value
Expand Down

0 comments on commit 5757924

Please sign in to comment.