This commit is contained in:
parent
63fe6c1553
commit
bdb6f3da3d
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
import {createCanvas, loadImage} from "canvas";
|
import {createCanvas, loadImage} from "canvas";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import AppLogger from "../client/appLogger";
|
import AppLogger from "../client/appLogger";
|
||||||
import {existsSync, readFileSync} from "fs";
|
import {existsSync} from "fs";
|
||||||
import Inventory from "../database/entities/app/Inventory";
|
import Inventory from "../database/entities/app/Inventory";
|
||||||
import Jimp from "jimp";
|
import Jimp from "jimp";
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ export default class ImageHelper {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let imageData = await Jimp.read(filePath);
|
const imageData = await Jimp.read(filePath);
|
||||||
|
|
||||||
if (userId != null) {
|
if (userId != null) {
|
||||||
const claimed = await Inventory.FetchOneByCardNumberAndUserId(userId, card.id) != null;
|
const claimed = await Inventory.FetchOneByCardNumberAndUserId(userId, card.id) != null;
|
||||||
|
|
Loading…
Reference in a new issue