Skip to content

Commit

Permalink
fix broken comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Jan 19, 2024
1 parent d6cc4e9 commit cf654ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/submission/utility/generateComparison.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const { AttachmentBuilder } = require("discord.js");
* @returns {Promise<ReturnParams>} compared texture and info
*/
module.exports = async function generateComparison(pack, attachment, texture) {
const reference = require("@resources/packs.json")[pack].reference ?? "default";
const reference = require("@resources/packs.json")[pack].submission.reference ?? "default";
const baseURL = `${process.env.API_URL}textures/${texture.id}/url/`;

const newImage = await loadImage(attachment.url);
Expand Down

0 comments on commit cf654ea

Please sign in to comment.