mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
parent
3a72852caa
commit
89e6af961b
3 changed files with 4 additions and 2 deletions
3
src/client/@types/vuex-shim.d.ts
vendored
3
src/client/@types/vuex-shim.d.ts
vendored
|
@ -2,10 +2,11 @@ import { ComponentCustomProperties } from 'vue';
|
||||||
import { Store } from 'vuex';
|
import { Store } from 'vuex';
|
||||||
|
|
||||||
declare module '@vue/runtime-core' {
|
declare module '@vue/runtime-core' {
|
||||||
|
// tslint:disable-next-line:no-empty-interface
|
||||||
interface State {
|
interface State {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ComponentCustomProperties {
|
interface ComponentCustomProperties {
|
||||||
$store: Store<State>
|
$store: Store<State>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,6 +69,7 @@ export default define(meta, async (ps, me) => {
|
||||||
throw new ApiError(meta.errors.accessDenied);
|
throw new ApiError(meta.errors.accessDenied);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// tslint:disable-next-line:no-unnecessary-initializer
|
||||||
let banner = undefined;
|
let banner = undefined;
|
||||||
if (ps.bannerId != null) {
|
if (ps.bannerId != null) {
|
||||||
banner = await DriveFiles.findOne({
|
banner = await DriveFiles.findOne({
|
||||||
|
|
|
@ -112,7 +112,7 @@ export default define(meta, async (ps, me) => {
|
||||||
.select('prof.userId')
|
.select('prof.userId')
|
||||||
.where('prof.userHost IS NOT NULL')
|
.where('prof.userHost IS NOT NULL')
|
||||||
.andWhere('prof.description ilike :query', { query: '%' + ps.query + '%' });
|
.andWhere('prof.description ilike :query', { query: '%' + ps.query + '%' });
|
||||||
|
|
||||||
const otherUsers = await Users.createQueryBuilder('user')
|
const otherUsers = await Users.createQueryBuilder('user')
|
||||||
.where(`user.id IN (${ profQuery2.getQuery() })`)
|
.where(`user.id IN (${ profQuery2.getQuery() })`)
|
||||||
.setParameters(profQuery2.getParameters())
|
.setParameters(profQuery2.getParameters())
|
||||||
|
|
Loading…
Reference in a new issue