diff options
| author | syuilo⭐️ <Syuilotan@yahoo.co.jp> | 2017-05-05 16:46:50 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-05 16:46:50 +0900 |
| commit | 8d8c7c9a5bf0476d939739c2a30aab52744c70f4 (patch) | |
| tree | 3f0f5f0620e45f87684a0d0d0dcba828ef3e5374 /src/api/endpoints/posts/create.ts | |
| parent | Merge pull request #450 from syuilo/greenkeeper/@types/request-0.0.43 (diff) | |
| download | sharkey-8d8c7c9a5bf0476d939739c2a30aab52744c70f4.tar.gz sharkey-8d8c7c9a5bf0476d939739c2a30aab52744c70f4.tar.bz2 sharkey-8d8c7c9a5bf0476d939739c2a30aab52744c70f4.zip | |
[Refactor] Fix indentation level
Diffstat (limited to 'src/api/endpoints/posts/create.ts')
| -rw-r--r-- | src/api/endpoints/posts/create.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/api/endpoints/posts/create.ts b/src/api/endpoints/posts/create.ts index 9f313bc208..26faee4713 100644 --- a/src/api/endpoints/posts/create.ts +++ b/src/api/endpoints/posts/create.ts @@ -45,8 +45,8 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => { _id: mediaId, user_id: user._id }, { - _id: true - }); + _id: true + }); if (entity === null) { return rej('file not found'); @@ -79,10 +79,10 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => { const latestPost = await Post.findOne({ user_id: user._id }, { - sort: { - _id: -1 - } - }); + sort: { + _id: -1 + } + }); // 直近と同じRepost対象かつ引用じゃなかったらエラー if (latestPost && |