refactor(consume material): changes to use api vs prod user
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user