mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 13:43:06 -04:00
update environment variable
This commit is contained in:
parent
6062476fd0
commit
317613923f
1 changed files with 2 additions and 2 deletions
|
@ -29,14 +29,14 @@ async function processMakesweet(effect, args, image) {
|
||||||
if(!image) throw "Unable to fetch image"
|
if(!image) throw "Unable to fetch image"
|
||||||
|
|
||||||
let res = await superagent.post(`http://api.makesweet.com/make/${effect.toLowerCase()}`)
|
let res = await superagent.post(`http://api.makesweet.com/make/${effect.toLowerCase()}`)
|
||||||
.set("Authorization", process.env.makesweet)
|
.set("Authorization", process.env.MAKESWEET_KEY)
|
||||||
.buffer(true)
|
.buffer(true)
|
||||||
.query(args)
|
.query(args)
|
||||||
.attach('image', image, 'image.png')
|
.attach('image', image, 'image.png')
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
let res = await superagent.post(`http://api.makesweet.com/make/${effect.toLowerCase()}`)
|
let res = await superagent.post(`http://api.makesweet.com/make/${effect.toLowerCase()}`)
|
||||||
.set("Authorization", process.env.makesweet)
|
.set("Authorization", process.env.MAKESWEET_KEY)
|
||||||
.buffer(true)
|
.buffer(true)
|
||||||
.query(args)
|
.query(args)
|
||||||
return res
|
return res
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue