summaryrefslogtreecommitdiff
path: root/src/api/models/drive-file.ts
diff options
context:
space:
mode:
authorotofune <otofune@gmail.com>2017-11-06 16:32:01 +0900
committerotofune <otofune@gmail.com>2017-11-06 16:32:01 +0900
commitd5cc4cc9c28eb6a981ce37859def97cd7c57abc6 (patch)
treebd9716aa1943210968456940f594b831e3556c68 /src/api/models/drive-file.ts
parentremove console (diff)
downloadsharkey-d5cc4cc9c28eb6a981ce37859def97cd7c57abc6.tar.gz
sharkey-d5cc4cc9c28eb6a981ce37859def97cd7c57abc6.tar.bz2
sharkey-d5cc4cc9c28eb6a981ce37859def97cd7c57abc6.zip
fix lint (automattic)
Diffstat (limited to 'src/api/models/drive-file.ts')
-rw-r--r--src/api/models/drive-file.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/api/models/drive-file.ts b/src/api/models/drive-file.ts
index 79a87f6572..8968d065cd 100644
--- a/src/api/models/drive-file.ts
+++ b/src/api/models/drive-file.ts
@@ -8,14 +8,14 @@ const collection = monkDb.get('drive_files.files');
export default collection as any; // fuck type definition
const getGridFSBucket = async (): Promise<mongodb.GridFSBucket> => {
- const db = await nativeDbConn()
+ const db = await nativeDbConn();
const bucket = new mongodb.GridFSBucket(db, {
bucketName: 'drive_files'
- })
- return bucket
-}
+ });
+ return bucket;
+};
-export { getGridFSBucket }
+export { getGridFSBucket };
export function validateFileName(name: string): boolean {
return (