From ba3c62bf9cf710bc13e4ded4df8388639dc0846d Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sun, 18 Oct 2020 01:23:46 +0900 Subject: [PATCH] Fix lint (#6732) * Fix lint * nl --- src/client/@types/vuex-shim.d.ts | 3 ++- src/server/api/endpoints/channels/update.ts | 1 + src/server/api/endpoints/users/search.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client/@types/vuex-shim.d.ts b/src/client/@types/vuex-shim.d.ts index b15424d79..5bcc4c460 100644 --- a/src/client/@types/vuex-shim.d.ts +++ b/src/client/@types/vuex-shim.d.ts @@ -2,10 +2,11 @@ import { ComponentCustomProperties } from 'vue'; import { Store } from 'vuex'; declare module '@vue/runtime-core' { + // tslint:disable-next-line:no-empty-interface interface State { } interface ComponentCustomProperties { - $store: Store + $store: Store; } } diff --git a/src/server/api/endpoints/channels/update.ts b/src/server/api/endpoints/channels/update.ts index 8b94646ad..ca35fe85c 100644 --- a/src/server/api/endpoints/channels/update.ts +++ b/src/server/api/endpoints/channels/update.ts @@ -69,6 +69,7 @@ export default define(meta, async (ps, me) => { throw new ApiError(meta.errors.accessDenied); } + // tslint:disable-next-line:no-unnecessary-initializer let banner = undefined; if (ps.bannerId != null) { banner = await DriveFiles.findOne({ diff --git a/src/server/api/endpoints/users/search.ts b/src/server/api/endpoints/users/search.ts index 0ec4f3ad0..528c6ac88 100644 --- a/src/server/api/endpoints/users/search.ts +++ b/src/server/api/endpoints/users/search.ts @@ -112,7 +112,7 @@ export default define(meta, async (ps, me) => { .select('prof.userId') .where('prof.userHost IS NOT NULL') .andWhere('prof.description ilike :query', { query: '%' + ps.query + '%' }); - + const otherUsers = await Users.createQueryBuilder('user') .where(`user.id IN (${ profQuery2.getQuery() })`) .setParameters(profQuery2.getParameters())