enable joined_within_days and active_within_days to musician filter option

This commit is contained in:
Nuwan 2022-02-17 19:37:23 +05:30
parent 0fcd8bc873
commit 3606b4f281
2 changed files with 4 additions and 7 deletions

View File

@ -358,7 +358,7 @@ function JKPeopleFilter() {
)}
/>
</div>
{/* <label className="form-label" htmlFor="lastActive">
<label className="form-label" htmlFor="lastActive">
Last Active{' '}
<JKTooltip title="Use this list to search for other musicians who have been active on JamKazam within a specified time period. More recent activity makes it more likely they will respond if you message or request to connect." />
</label>
@ -379,8 +379,7 @@ function JKPeopleFilter() {
control={control}
render={({ field }) => <Select {...field} options={joinedOpts} id="selJoinedWithin" />}
/>
</div> */}
</div>
<label className="form-label" htmlFor="from_location">
Search by My Location{' '}
</label>

View File

@ -33,10 +33,8 @@ module LatencyHelper
req_params.merge!(instruments: filter_opts[:instruments]) if filter_opts[:instruments]
req_params.merge!(genres: filter_opts[:genres]) if filter_opts[:genres]
#TODO: enable following two lines one joined and active options are been supported by neo4j handler
#req_params.merge!(joined_within_days: filter_opts[:joined_within_days]) if filter_opts[:joined_within_days]
#req_params.merge!(active_within_days: filter_opts[:active_within_days]) if filter_opts[:active_within_days]
req_params.merge!(joined_within_days: filter_opts[:joined_within_days]) if filter_opts[:joined_within_days]
req_params.merge!(active_within_days: filter_opts[:active_within_days]) if filter_opts[:active_within_days]
req.body = req_params.to_json