diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-03-28 17:05:36 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-28 17:05:36 +0900 |
| commit | 46e530ef41bb640cfa66438e888d1ecd6f90f6bb (patch) | |
| tree | a23eefae5e437ad6adc7dfe190daba81138aa70b /src/api/endpoints/stats.ts | |
| parent | #1294 (diff) | |
| parent | oops (diff) | |
| download | sharkey-46e530ef41bb640cfa66438e888d1ecd6f90f6bb.tar.gz sharkey-46e530ef41bb640cfa66438e888d1ecd6f90f6bb.tar.bz2 sharkey-46e530ef41bb640cfa66438e888d1ecd6f90f6bb.zip | |
Merge pull request #1324 from syuilo/#1288-2
snake_case を camelCase にするなどした
Diffstat (limited to 'src/api/endpoints/stats.ts')
| -rw-r--r-- | src/api/endpoints/stats.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/endpoints/stats.ts b/src/api/endpoints/stats.ts index a6084cd17a..719792d40d 100644 --- a/src/api/endpoints/stats.ts +++ b/src/api/endpoints/stats.ts @@ -15,10 +15,10 @@ import User from '../models/user'; * schema: * type: object * properties: - * posts_count: + * postsCount: * description: count of all posts of misskey * type: number - * users_count: + * usersCount: * description: count of all users of misskey * type: number * @@ -42,7 +42,7 @@ module.exports = params => new Promise(async (res, rej) => { .count(); res({ - posts_count: postsCount, - users_count: usersCount + postsCount: postsCount, + usersCount: usersCount }); }); |