aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/account/account-follow.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/account/account-follow.ts')
-rw-r--r--server/models/account/account-follow.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/models/account/account-follow.ts b/server/models/account/account-follow.ts
index 578bcda39..8e35c7d20 100644
--- a/server/models/account/account-follow.ts
+++ b/server/models/account/account-follow.ts
@@ -93,7 +93,7 @@ toFormattedJSON = function (this: AccountFollowInstance) {
93 return json 93 return json
94} 94}
95 95
96loadByAccountAndTarget = function (accountId: number, targetAccountId: number) { 96loadByAccountAndTarget = function (accountId: number, targetAccountId: number, t?: Sequelize.Transaction) {
97 const query = { 97 const query = {
98 where: { 98 where: {
99 accountId, 99 accountId,
@@ -110,7 +110,8 @@ loadByAccountAndTarget = function (accountId: number, targetAccountId: number) {
110 required: true, 110 required: true,
111 as: 'AccountFollowing' 111 as: 'AccountFollowing'
112 } 112 }
113 ] 113 ],
114 transaction: t
114 } 115 }
115 116
116 return AccountFollow.findOne(query) 117 return AccountFollow.findOne(query)