remove redundant sql query.

This commit is contained in:
piuvas 2025-04-20 23:21:50 -03:00
parent 06fb6fbeca
commit 6df82f4eef
No known key found for this signature in database

View file

@ -614,15 +614,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
this.accountUpdateService.publishToFollowers(user.id); this.accountUpdateService.publishToFollowers(user.id);
} }
if (verified_links.length > 0) {
await userProfilesRepository.createQueryBuilder('profile').update()
.where('userId = :userId', { userId: user.id })
.set({
verifiedLinks: verified_links.filter(x => safeForSql(x)), // ここでSQLインジェクションされそうなのでとりあえず safeForSql で弾いている
})
.execute();
}
return iObj; return iObj;
}); });
} }