Skip to content

Commit

Permalink
updated API param
Browse files Browse the repository at this point in the history
  • Loading branch information
NullDev committed Mar 27, 2024
1 parent aef288e commit b4b9e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classifier/classify.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const classifyItem = async function(data, index){
const name = `${e.id}__${uuid.v4()}.jpg`;
const file = fs.createWriteStream(path.resolve(`./image_cache/${name}`));

https.get(config.result_server.image_getter + "?apiAuth=" + config.result_server.secret + "&postId=" + e.id, httpStream => {
https.get(config.result_server.image_getter + "?apiAuth=" + config.result_server.secret + "&itemId=" + e.id, httpStream => {
const stat = httpStream.pipe(file);
stat.on("finish", async() => {
log.done(`Downloaded ${name}`);
Expand Down

0 comments on commit b4b9e6d

Please sign in to comment.