mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 12:43:08 +02:00
[API] Fix bu
This commit is contained in:
parent
70fe14a88e
commit
7bc788fc57
1 changed files with 1 additions and 3 deletions
|
@ -110,7 +110,7 @@ export default (
|
|||
}
|
||||
|
||||
// Create DriveFile document
|
||||
const res = await DriveFile.insert({
|
||||
const file = await DriveFile.insert({
|
||||
created_at: new Date(),
|
||||
user_id: user._id,
|
||||
folder_id: folder !== null ? folder._id : null,
|
||||
|
@ -123,8 +123,6 @@ export default (
|
|||
properties: properties
|
||||
});
|
||||
|
||||
const file = res.ops[0];
|
||||
|
||||
resolve(file);
|
||||
|
||||
// Serialize
|
||||
|
|
Loading…
Reference in a new issue