From b837960ad088698d211e29b491c0f69d87183d06 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Wed, 3 May 2017 20:30:19 +0000 Subject: [PATCH 1/7] chore(package): update tslint to version 5.2.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 22a851599..714f98d8e 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "stylus": "0.54.5", "stylus-loader": "3.0.1", "swagger-jsdoc": "1.9.3", - "tslint": "5.1.0", + "tslint": "5.2.0", "uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#8f4b45f4f814c04918382949b4bcaf7a8d910281", "webpack": "2.4.1" }, From 70d4c16eb54d202e86d422370a9165d67cafd552 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Wed, 3 May 2017 21:16:04 +0000 Subject: [PATCH 2/7] fix(package): update ts-node to version 3.0.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 22a851599..689c317a2 100644 --- a/package.json +++ b/package.json @@ -144,7 +144,7 @@ "syuilo-password-strength": "0.0.1", "tcp-port-used": "0.1.2", "textarea-caret": "3.0.2", - "ts-node": "3.0.1", + "ts-node": "3.0.3", "typescript": "2.3.2", "uuid": "3.0.1", "vhost": "3.0.2", From 9960d1b93c01798d854784620649a7fb15801ac8 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Thu, 4 May 2017 10:34:34 +0000 Subject: [PATCH 3/7] chore(package): update webpack to version 2.5.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 95edfbbe8..2eb5a2531 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "swagger-jsdoc": "1.9.3", "tslint": "5.2.0", "uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#8f4b45f4f814c04918382949b4bcaf7a8d910281", - "webpack": "2.4.1" + "webpack": "2.5.0" }, "dependencies": { "accesses": "2.5.0", From fec041293963539f2c304e8cd4a95d953827dda2 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Thu, 4 May 2017 12:55:32 +0000 Subject: [PATCH 4/7] fix(package): update summaly to version 2.0.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2eb5a2531..233f16b51 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,7 @@ "s-age": "1.1.0", "serve-favicon": "2.4.2", "subdomain": "1.2.0", - "summaly": "2.0.1", + "summaly": "2.0.2", "syuilo-password-strength": "0.0.1", "tcp-port-used": "0.1.2", "textarea-caret": "3.0.2", From afbbf558d441243bf1060a14c3cdba8f77095af2 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Thu, 4 May 2017 23:44:12 +0000 Subject: [PATCH 5/7] fix(package): update ts-node to version 3.0.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 233f16b51..1ac9f37de 100644 --- a/package.json +++ b/package.json @@ -144,7 +144,7 @@ "syuilo-password-strength": "0.0.1", "tcp-port-used": "0.1.2", "textarea-caret": "3.0.2", - "ts-node": "3.0.3", + "ts-node": "3.0.4", "typescript": "2.3.2", "uuid": "3.0.1", "vhost": "3.0.2", From 0f6aac56a62bce38289ebdab2e2c3b5d5ca44ade Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Fri, 5 May 2017 01:28:18 +0000 Subject: [PATCH 6/7] chore(package): update @types/request to version 0.0.43 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 233f16b51..dd6a72101 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "@types/multer": "0.0.33", "@types/ratelimiter": "2.1.28", "@types/redis": "0.12.36", - "@types/request": "0.0.42", + "@types/request": "0.0.43", "@types/rimraf": "0.0.28", "@types/riot": "2.6.2", "@types/serve-favicon": "2.2.28", From dd7cb94313f2eea6277b0a3895a6da8fa4433b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?syuilo=E2=AD=90=EF=B8=8F?= Date: Fri, 5 May 2017 16:46:50 +0900 Subject: [PATCH 7/7] [Refactor] Fix indentation level --- src/api/endpoints/posts/create.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/api/endpoints/posts/create.ts b/src/api/endpoints/posts/create.ts index 9f313bc20..26faee471 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 &&