1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-25 11:29:26 -05:00

update test for GridFS

This commit is contained in:
otofune 2017-11-06 16:59:09 +09:00
parent 3be69a8cb7
commit 73bb81de8f

View file

@ -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) {