fix(dm): missing api key call, and better logging on the post orders section

This commit is contained in:
2025-07-15 08:40:38 -05:00
parent e2b549714c
commit 531b343d17
2 changed files with 18 additions and 2 deletions

View File

@@ -14,7 +14,8 @@ export const postForecast = async (data: any, user: any) => {
url: endpoint,
method: "POST",
headers: {
Authorization: `Basic ${user.prod}`,
"X-API-Key": process.env.TEC_API_KEY || "",
"Content-Type": "application/json",
},
// if a body is sent over it would be like below
data: data,