diff options
author | Chocobozzz <me@florianbigard.com> | 2022-01-14 14:15:23 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-14 14:15:23 +0100 |
commit | c0d2eac3329ec4454a178a4442bdcf20c388c8ff (patch) | |
tree | 7554ccac3b1cb43605f524ba6f9770ac6c3ed30d /server/models/utils.ts | |
parent | c9c0cc5179359b6a9fa7c46bf73df99c4f72c1fc (diff) | |
download | PeerTube-c0d2eac3329ec4454a178a4442bdcf20c388c8ff.tar.gz PeerTube-c0d2eac3329ec4454a178a4442bdcf20c388c8ff.tar.zst PeerTube-c0d2eac3329ec4454a178a4442bdcf20c388c8ff.zip |
Update server dependencies
Diffstat (limited to 'server/models/utils.ts')
-rw-r--r-- | server/models/utils.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/utils.ts b/server/models/utils.ts index 6a109056f..8c694d4e5 100644 --- a/server/models/utils.ts +++ b/server/models/utils.ts | |||
@@ -238,7 +238,8 @@ function searchAttribute (sourceField?: string, targetField?: string) { | |||
238 | 238 | ||
239 | return { | 239 | return { |
240 | [targetField]: { | 240 | [targetField]: { |
241 | [Op.iLike]: `%${sourceField}%` | 241 | // FIXME: ts error |
242 | [Op.iLike as any]: `%${sourceField}%` | ||
242 | } | 243 | } |
243 | } | 244 | } |
244 | } | 245 | } |