diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2020-10-18 01:23:46 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-18 01:23:46 +0900 |
| commit | ba3c62bf9cf710bc13e4ded4df8388639dc0846d (patch) | |
| tree | f9085c28a3413b4fbe339ed4f822ad5d28263098 | |
| parent | 12.48.1 (diff) | |
| download | sharkey-ba3c62bf9cf710bc13e4ded4df8388639dc0846d.tar.gz sharkey-ba3c62bf9cf710bc13e4ded4df8388639dc0846d.tar.bz2 sharkey-ba3c62bf9cf710bc13e4ded4df8388639dc0846d.zip | |
Fix lint (#6732)
* Fix lint
* nl
| -rw-r--r-- | src/client/@types/vuex-shim.d.ts | 3 | ||||
| -rw-r--r-- | src/server/api/endpoints/channels/update.ts | 1 | ||||
| -rw-r--r-- | 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 b15424d792..5bcc4c460e 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<State> + $store: Store<State>; } } diff --git a/src/server/api/endpoints/channels/update.ts b/src/server/api/endpoints/channels/update.ts index 8b94646ad1..ca35fe85cb 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 0ec4f3ad02..528c6ac883 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()) |