diff options
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 | } |