mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-06 20:16:57 +00:00
remove redundant sql query.
This commit is contained in:
parent
06fb6fbeca
commit
6df82f4eef
1 changed files with 0 additions and 9 deletions
|
@ -614,15 +614,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
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;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue