From 0d86eef3d71d62609855703e3c26abe72da72645 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 29 Oct 2018 21:38:09 +0900 Subject: [PATCH] Format --- src/server/api/endpoints/ap/show.ts | 6 +++--- src/services/following/create.ts | 2 +- src/services/following/requests/create.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/server/api/endpoints/ap/show.ts b/src/server/api/endpoints/ap/show.ts index 6cbd4ef87..490b2f1ad 100644 --- a/src/server/api/endpoints/ap/show.ts +++ b/src/server/api/endpoints/ap/show.ts @@ -41,7 +41,7 @@ async function fetchAny(uri: string) { // URIがこのサーバーを指しているなら、ローカルユーザーIDとしてDBからフェッチ if (uri.startsWith(config.url + '/')) { const id = new mongo.ObjectID(uri.split('/').pop()); - const [ user, note ] = await Promise.all([ + const [user, note] = await Promise.all([ User.findOne({ _id: id }), Note.findOne({ _id: id }) ]); @@ -52,7 +52,7 @@ async function fetchAny(uri: string) { // URI(AP Object id)としてDB検索 { - const [ user, note ] = await Promise.all([ + const [user, note] = await Promise.all([ User.findOne({ uri: uri }), Note.findOne({ uri: uri }) ]); @@ -68,7 +68,7 @@ async function fetchAny(uri: string) { // /@user のような正規id以外で取得できるURIが指定されていた場合、ここで初めて正規URIが確定する // これはDBに存在する可能性があるため再度DB検索 if (uri !== object.id) { - const [ user, note ] = await Promise.all([ + const [user, note] = await Promise.all([ User.findOne({ uri: object.id }), Note.findOne({ uri: object.id }) ]); diff --git a/src/services/following/create.ts b/src/services/following/create.ts index 38367399e..f35033a1c 100644 --- a/src/services/following/create.ts +++ b/src/services/following/create.ts @@ -13,7 +13,7 @@ import perUserFollowingChart from '../../chart/per-user-following'; export default async function(follower: IUser, followee: IUser, requestId?: string) { // check blocking - const [ blocking, blocked ] = await Promise.all([ + const [blocking, blocked] = await Promise.all([ Blocking.findOne({ blockerId: follower._id, blockeeId: followee._id, diff --git a/src/services/following/requests/create.ts b/src/services/following/requests/create.ts index a87e472ad..eb5719153 100644 --- a/src/services/following/requests/create.ts +++ b/src/services/following/requests/create.ts @@ -9,7 +9,7 @@ import Blocking from '../../../models/blocking'; export default async function(follower: IUser, followee: IUser, requestId?: string) { // check blocking - const [ blocking, blocked ] = await Promise.all([ + const [blocking, blocked] = await Promise.all([ Blocking.findOne({ blockerId: follower._id, blockeeId: followee._id,