File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/integrations/gei-bookings Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gei-bookings" ,
3
- "version" : " 0.2.1 " ,
3
+ "version" : " 0.2.2 " ,
4
4
"description" : " Automatically generated by graphql-editor-cli" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export const getSelfServices = async (input: FieldResolveInput) =>
14
14
const po = preparePageOptions ( args ?. input ?. page ) ;
15
15
const pa =
16
16
args ?. input ?. filters &&
17
- Object . fromEntries ( Object . entries ( args ?. input ?. filters ) . filter ( ( v ) => v !== null && v !== undefined ) ) ;
17
+ Object . fromEntries ( Object . entries ( args ?. input ?. filters ) . filter ( ( v ) => v !== null && v !== undefined && v [ 0 ] !== 'fromDate' && v [ 0 ] !== 'toDate' ) ) ;
18
18
const fromDate = isScalarDate ( args ?. input ?. filters ?. fromDate )
19
19
? isScalarDate ( args ?. input ?. filters ?. fromDate )
20
20
: undefined ;
@@ -25,8 +25,8 @@ export const getSelfServices = async (input: FieldResolveInput) =>
25
25
const selfServices = await MongoOrb ( ServicesCollection )
26
26
. collection . find ( {
27
27
...pa ,
28
- ...( fromDate && { createdAt : { $gte : new Date ( args ?. input ?. filters ?. fromDate as string ) } } ) ,
29
- ...( toDate && { createdAt : { $lte : new Date ( args ?. input ?. filters ?. toDate as string ) } } ) ,
28
+ ...( fromDate && { startDate : { $gte : new Date ( args ?. input ?. filters ?. fromDate as string ) } } ) ,
29
+ ...( toDate && { startDate : { $lte : new Date ( args ?. input ?. filters ?. toDate as string ) } } ) ,
30
30
...( args ?. input ?. filters ?. name && { name : { $regex : args ?. input . filters . name , $options : 'i' } } ) ,
31
31
...( args ?. input ?. filters ?. description && {
32
32
description : { $regex : args ?. input . filters . description , $options : 'i' } ,
You can’t perform that action at this time.
0 commit comments