Image model findByFile typings improve

This commit is contained in:
tmshv committed 2019-10-15 01:22:17 +03:00
1 parent 5f637b4097
commit 873c4ce65c
1 file changed
+1 -1
+1 -1
View File
@@ -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