refactor(consume material): changes to use api vs prod user

This commit is contained in:
2025-07-14 10:18:59 -05:00
parent 41308788fd
commit bc54b365ea

View File

@@ -54,8 +54,8 @@ export const consumeMaterial = async (data: Data, prod: any) => {
try {
const results = await axios.post(url, consumeSomething, {
headers: {
"X-API-Key": process.env.TEC_API_KEY || "",
"Content-Type": "application/json",
Authorization: `Basic ${prod.user.prod}`,
},
});
//console.log(results);