Skip to content

Commit d674a72

Browse files
feat: 2.0.5
feat: 2.0.5
2 parents 1ff8ec3 + 4b37d91 commit d674a72

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fence-tracker",
33
"private": true,
4-
"version": "2.0.4",
4+
"version": "2.0.5",
55
"type": "module",
66
"license": "MIT",
77
"scripts": {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const buildServer = async (): Promise<void> => {
5353

5454
await startServer(serverInstance as Express);
5555

56-
createSequentialInterval(
56+
await createSequentialInterval(
5757
createAlertsService.createAlerts,
5858
MONITORING_INTERVAL
5959
);

src/services/createAlerts.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const createAlerts = async (): Promise<void> => {
4343
const startDateFormattation = date.hours() < 12 ? date.clone().hours(0).minutes(0).seconds(0).format('DD/MM/YYYY HH:mm:ss') : date.clone().hours(12).minutes(0).seconds(0).format('DD/MM/YYYY HH:mm:ss');
4444
const endDateFormattation = date.hours() < 12 ? date.clone().hours(11).minutes(59).seconds(59).format('DD/MM/YYYY HH:mm:ss') : date.clone().hours(23).minutes(59).seconds(59).format('DD/MM/YYYY HH:mm:ss');
4545

46-
Promise.allSettled(
46+
await Promise.allSettled(
4747
alertMapListA.map(
4848
async (alertMap: IAlertMap.IAlertMap): Promise<void> => {
4949
const alertMapAccountCode = alertMap.account_code;
@@ -80,7 +80,7 @@ export const createAlerts = async (): Promise<void> => {
8080
}
8181
);
8282

83-
whatsAppHttpClientInstance.post<unknown>(
83+
await whatsAppHttpClientInstance.post<unknown>(
8484
`https://v5.chatpro.com.br/${ process.env.CHAT_PRO_INSTANCE_ID }/api/v1/send_message`,
8585
{
8686
message: `⚠️ *ALERTA CERCA* ⚠️\n\n*Conta:* ${ alertMapAccountCode }\n*Condomínio:* ${ alertMap.condominium }\n*Armário:* ${ alertMap.cabinet }\n*Zona:* ${ alertMapZoneName }\n*Quantidate*: ${ alertMapQuantityMultiple }\n*Período Inicial:* ${ startDateFormattation }\n*Período Final:* ${ endDateFormattation }`,
@@ -99,7 +99,7 @@ export const createAlerts = async (): Promise<void> => {
9999
}
100100
);
101101

102-
whatsAppHttpClientInstance.post<unknown>(
102+
await whatsAppHttpClientInstance.post<unknown>(
103103
`https://v5.chatpro.com.br/${ process.env.CHAT_PRO_INSTANCE_ID }/api/v1/send_message`,
104104
{
105105
message: `⚠️ *ALERTA CERCA* ⚠️\n\n*Conta:* ${ alertMapAccountCode }\n*Condomínio:* ${ alertMap.condominium }\n*Armário:* ${ alertMap.cabinet }\n*Zona:* ${ alertMapZoneName }\n*Quantidate*: ${ alertMapQuantityMultiple }\n*Período Inicial:* ${ startDateFormattation }\n*Período Final:* ${ endDateFormattation }`,

swagger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.3
22
info:
33
title: 🚧 Fence Tracker
4-
version: 2.0.4
4+
version: 2.0.5
55
description: |
66
## 📋 Overview
77

0 commit comments

Comments
 (0)