mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 13:27:31 -07:00
change move sql query
This commit is contained in:
parent
0f87b92fb3
commit
85bd231a5e
1 changed files with 2 additions and 3 deletions
|
@ -55,9 +55,8 @@ export default async (actor: CacheableRemoteUser, activity: IMove): Promise<stri
|
||||||
|
|
||||||
old_acc.movedToUri = new_acc.uri;
|
old_acc.movedToUri = new_acc.uri;
|
||||||
|
|
||||||
const query = makePaginationQuery(Followings.createQueryBuilder('following'))
|
const query = Followings.createQueryBuilder('following')
|
||||||
.andWhere('following.followeeId = :userId', { userId: old_acc.id })
|
.where('following.followeeId = :userId', { userId: old_acc.id });
|
||||||
.innerJoinAndSelect('following.follower', 'follower');
|
|
||||||
|
|
||||||
const followings = await query
|
const followings = await query
|
||||||
.getMany();
|
.getMany();
|
||||||
|
|
Loading…
Reference in a new issue