connect fn update
This commit is contained in:
1 parent
43af2996bf
commit
0713bad871
14 files changed
+16
-26
No files matched your search
+1
-2
@@ -1,10 +1,9 @@
|
||||
import { dbUri } from '../../src/config'
|
||||
import { connect } from '../../src/core/db'
|
||||
import Image from '../../src/core/Image'
|
||||
import ImageArtifactType from '../../src/core/ImageArtifactType'
|
||||
|
||||
export default async (req, res) => {
|
||||
await connect(dbUri)
|
||||
await connect()
|
||||
|
||||
const file = req.query.file
|
||||
const image = await Image.findByFile(file)
|
||||
|
||||
Reference in new issue
Block a user