summaryrefslogtreecommitdiff
path: root/src/api/endpoints/channels.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-02-04 15:02:14 +0900
committerGitHub <noreply@github.com>2018-02-04 15:02:14 +0900
commit744c3e2ef8ef89355f72262b1e8c8f2fbb020f2a (patch)
treede3630065fcddeb1916668ef3b0b43a219340e2e /src/api/endpoints/channels.ts
parentUpdate dependencies :rocket: (diff)
parentwip (diff)
downloadmisskey-744c3e2ef8ef89355f72262b1e8c8f2fbb020f2a.tar.gz
misskey-744c3e2ef8ef89355f72262b1e8c8f2fbb020f2a.tar.bz2
misskey-744c3e2ef8ef89355f72262b1e8c8f2fbb020f2a.zip
Merge pull request #1097 from syuilo/refactor
Refactor
Diffstat (limited to 'src/api/endpoints/channels.ts')
-rw-r--r--src/api/endpoints/channels.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/api/endpoints/channels.ts b/src/api/endpoints/channels.ts
index 14817d9bd8..b9a7d1b788 100644
--- a/src/api/endpoints/channels.ts
+++ b/src/api/endpoints/channels.ts
@@ -2,8 +2,7 @@
* Module dependencies
*/
import $ from 'cafy';
-import Channel from '../models/channel';
-import serialize from '../serializers/channel';
+import Channel, { pack } from '../models/channel';
/**
* Get all channels
@@ -55,5 +54,5 @@ module.exports = (params, me) => new Promise(async (res, rej) => {
// Serialize
res(await Promise.all(channels.map(async channel =>
- await serialize(channel, me))));
+ await pack(channel, me))));
});