diff options
| author | piuvas <mail@piuvas.net> | 2025-04-20 23:21:50 -0300 |
|---|---|---|
| committer | piuvas <mail@piuvas.net> | 2025-04-20 23:21:50 -0300 |
| commit | 6df82f4eefc31e84fc311ff7fff5c59cc4108195 (patch) | |
| tree | eacd776d6e1e50ee57213234c144e3a16959c18d /packages/backend/src/server/api | |
| parent | requested changes. (diff) | |
| download | sharkey-6df82f4eefc31e84fc311ff7fff5c59cc4108195.tar.gz sharkey-6df82f4eefc31e84fc311ff7fff5c59cc4108195.tar.bz2 sharkey-6df82f4eefc31e84fc311ff7fff5c59cc4108195.zip | |
remove redundant sql query.
Diffstat (limited to 'packages/backend/src/server/api')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/i/update.ts | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts index f8937a8919..3566941957 100644 --- a/packages/backend/src/server/api/endpoints/i/update.ts +++ b/packages/backend/src/server/api/endpoints/i/update.ts @@ -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; }); } |