diff options
| author | syuilo⭐️ <Syuilotan@yahoo.co.jp> | 2017-01-24 21:44:30 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-24 21:44:30 +0900 |
| commit | 7bc788fc57519cdda7d91016a2a67c6e141dfb59 (patch) | |
| tree | ccba9e04b8e70adf56e5bf2ef26185782adf3ba3 /src/api/common | |
| parent | Add himasaku badges (diff) | |
| download | sharkey-7bc788fc57519cdda7d91016a2a67c6e141dfb59.tar.gz sharkey-7bc788fc57519cdda7d91016a2a67c6e141dfb59.tar.bz2 sharkey-7bc788fc57519cdda7d91016a2a67c6e141dfb59.zip | |
[API] Fix bu
Diffstat (limited to 'src/api/common')
| -rw-r--r-- | src/api/common/add-file-to-drive.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/common/add-file-to-drive.ts b/src/api/common/add-file-to-drive.ts index 76ca6c9139..7754c1e2c9 100644 --- a/src/api/common/add-file-to-drive.ts +++ b/src/api/common/add-file-to-drive.ts @@ -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 |