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 {
|
try {
|
||||||
const results = await axios.post(url, consumeSomething, {
|
const results = await axios.post(url, consumeSomething, {
|
||||||
headers: {
|
headers: {
|
||||||
|
"X-API-Key": process.env.TEC_API_KEY || "",
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
Authorization: `Basic ${prod.user.prod}`,
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
//console.log(results);
|
//console.log(results);
|
||||||
|
|||||||
Reference in New Issue
Block a user