Image model findByFile typings improve
This commit is contained in:
1 parent
5f637b4097
commit
873c4ce65c
1 file changed
+1
-1
+1
-1
@@ -14,7 +14,7 @@ export default class Image {
|
|||||||
return new Image({ ...data, artifacts })
|
return new Image({ ...data, artifacts })
|
||||||
}
|
}
|
||||||
|
|
||||||
static async findByFile(file) {
|
static async findByFile(file: string) {
|
||||||
const data = await findOne(store(), { file })
|
const data = await findOne(store(), { file })
|
||||||
if (!data) return null
|
if (!data) return null
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user