From 873c4ce65caa159b3e0c09f48dd40024ca148429 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 15 Oct 2019 01:22:17 +0300 Subject: [PATCH] Image model findByFile typings improve --- src/core/Image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Image.ts b/src/core/Image.ts index 79af86b4..3e1608f2 100644 --- a/src/core/Image.ts +++ b/src/core/Image.ts @@ -14,7 +14,7 @@ export default class Image { return new Image({ ...data, artifacts }) } - static async findByFile(file) { + static async findByFile(file: string) { const data = await findOne(store(), { file }) if (!data) return null