diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-20 11:20:12 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2020-05-01 16:41:02 +0200 |
commit | 0251197e249cc03b65805ed6805da72bf4573529 (patch) | |
tree | 3aae202fd1ea24bac5cd7f2c380ffe50aae189a0 /server/models/account | |
parent | b8cf27c0f86d205a279d03b83e0e6728f46da67f (diff) | |
download | PeerTube-0251197e249cc03b65805ed6805da72bf4573529.tar.gz PeerTube-0251197e249cc03b65805ed6805da72bf4573529.tar.zst PeerTube-0251197e249cc03b65805ed6805da72bf4573529.zip |
Factorize rest-table and fix/simplify SQL
Diffstat (limited to 'server/models/account')
-rw-r--r-- | server/models/account/account-blocklist.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/account/account-blocklist.ts b/server/models/account/account-blocklist.ts index fe2d5d010..d8a7ce4b4 100644 --- a/server/models/account/account-blocklist.ts +++ b/server/models/account/account-blocklist.ts | |||
@@ -133,8 +133,8 @@ export class AccountBlocklistModel extends Model<AccountBlocklistModel> { | |||
133 | if (search) { | 133 | if (search) { |
134 | Object.assign(where, { | 134 | Object.assign(where, { |
135 | [Op.or]: [ | 135 | [Op.or]: [ |
136 | { ...searchAttribute(search, '$BlockedAccount.name$') }, | 136 | searchAttribute(search, '$BlockedAccount.name$'), |
137 | { ...searchAttribute(search, '$BlockedAccount.Actor.url$') } | 137 | searchAttribute(search, '$BlockedAccount.Actor.url$') |
138 | ] | 138 | ] |
139 | }) | 139 | }) |
140 | } | 140 | } |