|
|
@ -179,7 +179,7 @@ app.post('/image', uploadMulter.single('image'), async (req, res) => { |
|
|
|
const handleId = req.body.handleId; |
|
|
|
await new Promise((resolve, reject) => { |
|
|
|
db.run( |
|
|
|
'INSERT INTO image (time, did, claim_type, handle_id, local_file, size, final_file, url) VALUES (?, ?, ?, ?, ?, ?, ?, ?)', |
|
|
|
'INSERT INTO image (time, did, claim_type, handle_id, local_file, size, final_file, mime_type, url) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', |
|
|
|
[ |
|
|
|
currentDate, |
|
|
|
issuerDid, |
|
|
@ -188,6 +188,7 @@ app.post('/image', uploadMulter.single('image'), async (req, res) => { |
|
|
|
localFile, |
|
|
|
reqFile.size, |
|
|
|
fileName, |
|
|
|
reqFile.mimetype, |
|
|
|
finalUrl |
|
|
|
], |
|
|
|
(dbErr) => { |
|
|
|