This repository was archived by the owner on Jul 2, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-21
lines changed Expand file tree Collapse file tree 1 file changed +17
-21
lines changed Original file line number Diff line number Diff line change @@ -34,32 +34,28 @@ export class ApplicantsService {
34
34
where || { } ;
35
35
36
36
//todo: filter parents with more than one condition
37
-
38
- const filter = {
39
- ...whereArgs ,
40
- profiles : {
41
- some : { profile : profiles_every }
42
- } ,
43
- projects : {
44
- some : { project : projects_every }
45
- } ,
46
- suggestions : {
47
- every : suggestions_every
48
- } ,
49
- skillset : {
50
- every : { skill : skills_every }
51
- }
52
- } ;
37
+ // fix: filter
38
+ // const filter = {
39
+ // ...whereArgs,
40
+ // profiles: {
41
+ // some: { profile: profiles_every }
42
+ // },
43
+ // projects: {
44
+ // some: { project: projects_every }
45
+ // },
46
+ // suggestions: {
47
+ // every: suggestions_every
48
+ // },
49
+ // skillset: {
50
+ // every: { skill: skills_every }
51
+ // }
52
+ // };
53
53
54
54
let applicants = await this . prisma . applicant . findMany ( {
55
55
include : this . applicantIncludes ,
56
- where : filter
56
+ where : { ... whereArgs }
57
57
} ) ;
58
58
59
- console . log ( applicants ) ;
60
-
61
- console . log ( filter ) ;
62
-
63
59
// todo refactor
64
60
if ( projects_every ) applicants = applicants . filter ( ( applicant ) => applicant . projects . length ) ;
65
61
if ( profiles_every ) applicants = applicants . filter ( ( applicant ) => applicant . profiles . length ) ;
You can’t perform that action at this time.
0 commit comments