diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-01 01:38:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-01 01:38:19 +0900 |
| commit | 71c3e11708dad327924bdcb95193d44c2b11a907 (patch) | |
| tree | fa5defe2a1cef98a799c02935bf482c35a728a11 /src/api/endpoints/channels/create.ts | |
| parent | wip (diff) | |
| download | misskey-71c3e11708dad327924bdcb95193d44c2b11a907.tar.gz misskey-71c3e11708dad327924bdcb95193d44c2b11a907.tar.bz2 misskey-71c3e11708dad327924bdcb95193d44c2b11a907.zip | |
wip
Diffstat (limited to 'src/api/endpoints/channels/create.ts')
| -rw-r--r-- | src/api/endpoints/channels/create.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/endpoints/channels/create.ts b/src/api/endpoints/channels/create.ts index 74b089dfc3..e0c0e0192a 100644 --- a/src/api/endpoints/channels/create.ts +++ b/src/api/endpoints/channels/create.ts @@ -21,7 +21,8 @@ module.exports = async (params, user) => new Promise(async (res, rej) => { const channel = await Channel.insert({ created_at: new Date(), user_id: user._id, - title: title + title: title, + index: 0 }); // Response |