Fix linter
All checks were successful
Test / build (push) Successful in 9s

This commit is contained in:
Ethan Lane 2024-07-10 16:54:26 +01:00
parent 63fe6c1553
commit bdb6f3da3d

View file

@ -1,7 +1,7 @@
import {createCanvas, loadImage} from "canvas";
import path from "path";
import AppLogger from "../client/appLogger";
import {existsSync, readFileSync} from "fs";
import {existsSync} from "fs";
import Inventory from "../database/entities/app/Inventory";
import Jimp from "jimp";
@ -36,7 +36,7 @@ export default class ImageHelper {
continue;
}
let imageData = await Jimp.read(filePath);
const imageData = await Jimp.read(filePath);
if (userId != null) {
const claimed = await Inventory.FetchOneByCardNumberAndUserId(userId, card.id) != null;