Skip to content
Snippets Groups Projects
Commit 73bb81de authored by otofune's avatar otofune
Browse files

update test for GridFS

parent 3be69a8c
No related branches found
No related tags found
No related merge requests found
......@@ -1152,9 +1152,12 @@ async function insertHimawari(opts) {
}
async function insertDriveFile(opts) {
return await db.get('drive_files').insert(Object.assign({
name: 'strawberry-pasta.png'
}, opts));
return await db.get('drive_files.files').insert({
length: opts.datasize,
metadata: Object.assign({
name: 'strawberry-pasta.png'
}, opts)
});
}
async function insertDriveFolder(opts) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment