diff options
| author | こぴなたみぽ <Syuilotan@yahoo.co.jp> | 2017-08-27 17:29:02 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-27 17:29:02 +0900 |
| commit | 419e9fc961fd27513ed34b2824063106edc8a45f (patch) | |
| tree | cfce7f57a689301042a6cde01ef796657829e2bf /src/api | |
| parent | chore(package): update @types/event-stream to version 3.3.32 (diff) | |
| parent | Merge pull request #717 from syuilo/greenkeeper/@types/mocha-2.2.42 (diff) | |
| download | misskey-419e9fc961fd27513ed34b2824063106edc8a45f.tar.gz misskey-419e9fc961fd27513ed34b2824063106edc8a45f.tar.bz2 misskey-419e9fc961fd27513ed34b2824063106edc8a45f.zip | |
Merge branch 'master' into greenkeeper/@types/event-stream-3.3.32
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/models/access-token.ts | 4 | ||||
| -rw-r--r-- | src/api/models/app.ts | 6 | ||||
| -rw-r--r-- | src/api/models/drive-file.ts | 2 | ||||
| -rw-r--r-- | src/api/models/user.ts | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/src/api/models/access-token.ts b/src/api/models/access-token.ts index 2a8a512ddc..9985be5013 100644 --- a/src/api/models/access-token.ts +++ b/src/api/models/access-token.ts @@ -2,7 +2,7 @@ import db from '../../db/mongodb'; const collection = db.get('access_tokens'); -(collection as any).index('token'); // fuck type definition -(collection as any).index('hash'); // fuck type definition +(collection as any).createIndex('token'); // fuck type definition +(collection as any).createIndex('hash'); // fuck type definition export default collection as any; // fuck type definition diff --git a/src/api/models/app.ts b/src/api/models/app.ts index bf5dc80c2c..68f2f448b0 100644 --- a/src/api/models/app.ts +++ b/src/api/models/app.ts @@ -2,9 +2,9 @@ import db from '../../db/mongodb'; const collection = db.get('apps'); -(collection as any).index('name_id'); // fuck type definition -(collection as any).index('name_id_lower'); // fuck type definition -(collection as any).index('secret'); // fuck type definition +(collection as any).createIndex('name_id'); // fuck type definition +(collection as any).createIndex('name_id_lower'); // fuck type definition +(collection as any).createIndex('secret'); // fuck type definition export default collection as any; // fuck type definition diff --git a/src/api/models/drive-file.ts b/src/api/models/drive-file.ts index 4c7204b1f4..8d158cf563 100644 --- a/src/api/models/drive-file.ts +++ b/src/api/models/drive-file.ts @@ -2,7 +2,7 @@ import db from '../../db/mongodb'; const collection = db.get('drive_files'); -(collection as any).index('hash'); // fuck type definition +(collection as any).createIndex('hash'); // fuck type definition export default collection as any; // fuck type definition diff --git a/src/api/models/user.ts b/src/api/models/user.ts index cd16459891..9f8cf0161d 100644 --- a/src/api/models/user.ts +++ b/src/api/models/user.ts @@ -2,8 +2,8 @@ import db from '../../db/mongodb'; const collection = db.get('users'); -(collection as any).index('username'); // fuck type definition -(collection as any).index('token'); // fuck type definition +(collection as any).createIndex('username'); // fuck type definition +(collection as any).createIndex('token'); // fuck type definition export default collection as any; // fuck type definition |