diff --git a/src/index.ts b/src/index.ts index f547416..4dbda37 100644 --- a/src/index.ts +++ b/src/index.ts @@ -41,7 +41,9 @@ const twilioClient = twilio(TWILIO_SID, TWILIO_AUTH_TOKEN); async function temperatoTick() { try { - const response = await request(GRAPHQL_URL, getSensorDataQuery); + const response = await request(GRAPHQL_URL, getSensorDataQuery, {}, { + 'authorization': process.env.AUTH, + }); if (response.getSensorData.temperato < SET_POINT && response.getSensorData.temperato >= EARLY_WARNING) { numberOfEarlyTicks++;