aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/account/account.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/account/account.ts')
-rw-r--r--server/models/account/account.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/models/account/account.ts b/server/models/account/account.ts
index daf8f4703..7ce97b2fd 100644
--- a/server/models/account/account.ts
+++ b/server/models/account/account.ts
@@ -198,6 +198,7 @@ export default function defineAccount (sequelize: Sequelize.Sequelize, DataTypes
198 loadApplication, 198 loadApplication,
199 load, 199 load,
200 loadByUUID, 200 loadByUUID,
201 loadByUrl,
201 loadLocalAccountByNameAndPod, 202 loadLocalAccountByNameAndPod,
202 listOwned, 203 listOwned,
203 listFollowerUrlsForApi, 204 listFollowerUrlsForApi,
@@ -480,11 +481,12 @@ loadLocalAccountByNameAndPod = function (name: string, host: string) {
480 return Account.findOne(query) 481 return Account.findOne(query)
481} 482}
482 483
483loadByUrl = function (url: string) { 484loadByUrl = function (url: string, transaction?: Sequelize.Transaction) {
484 const query: Sequelize.FindOptions<AccountAttributes> = { 485 const query: Sequelize.FindOptions<AccountAttributes> = {
485 where: { 486 where: {
486 url 487 url
487 } 488 },
489 transaction
488 } 490 }
489 491
490 return Account.findOne(query) 492 return Account.findOne(query)