From 813a956200e51deaf866bbad4f2622b61d4f80f1 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 aff7d4375e39106088b983656f19e1904b21f725 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 b0b093b9516d2b31c7be92df719c958d5040ab51 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 53473563573dbb8f441989d10a5ecdffc91982fd 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 d44d9743611013370dc8f74b760c949a5c3a8551 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 89a6e4c6cb0327b0bf637e15cc42a8b21176fbb7 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 8d8c7c9a5bf0476d939739c2a30aab52744c70f4 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 &&