mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fix lint
This commit is contained in:
parent
5c5f1ebc9c
commit
ae7c8601e5
@ -33,7 +33,7 @@ export const findContributions = async (
|
||||
...(statusFilter?.length && { contributionStatus: In(statusFilter) }),
|
||||
...(userId && { userId }),
|
||||
}
|
||||
|
||||
|
||||
let where =
|
||||
query && relations?.user
|
||||
? [
|
||||
@ -59,13 +59,13 @@ export const findContributions = async (
|
||||
},
|
||||
{
|
||||
...requiredWhere,
|
||||
memo: Like(`%${query}%`)
|
||||
memo: Like(`%${query}%`),
|
||||
},
|
||||
]
|
||||
: requiredWhere
|
||||
|
||||
|
||||
if (!relations?.user && query) {
|
||||
where = [{...requiredWhere, memo: Like(`%${query}%`)}]
|
||||
where = [{ ...requiredWhere, memo: Like(`%${query}%`) }]
|
||||
}
|
||||
|
||||
return DbContribution.findAndCount({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user