summaryrefslogtreecommitdiff
path: root/packages/backend
diff options
context:
space:
mode:
authorpiuvas <mail@piuvas.net>2025-04-20 23:21:50 -0300
committerpiuvas <mail@piuvas.net>2025-04-20 23:21:50 -0300
commit6df82f4eefc31e84fc311ff7fff5c59cc4108195 (patch)
treeeacd776d6e1e50ee57213234c144e3a16959c18d /packages/backend
parentrequested changes. (diff)
downloadsharkey-6df82f4eefc31e84fc311ff7fff5c59cc4108195.tar.gz
sharkey-6df82f4eefc31e84fc311ff7fff5c59cc4108195.tar.bz2
sharkey-6df82f4eefc31e84fc311ff7fff5c59cc4108195.zip
remove redundant sql query.
Diffstat (limited to 'packages/backend')
-rw-r--r--packages/backend/src/server/api/endpoints/i/update.ts9
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;
});
}