mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix the sessional segment for new customers
This commit is contained in:
@@ -123,14 +123,14 @@ class CreateCustomerLogic extends AbstractControllerLogic
|
||||
// assign other standard segment to all new customers
|
||||
$otherDefaultSegmentToAdd = Segment::whereIn('name', ['HONEY TRAP NEW REGISTRATION'])->get();
|
||||
$start_date = Carbon::now();
|
||||
$end_date = $start_date->addDays(30);
|
||||
$end_date = Carbon::now()->addDays(30);
|
||||
foreach ($otherDefaultSegmentToAdd as $segment) {
|
||||
$seasonalSegmentObject = new SeasonalSegmentObject($company->id, $segment->id, $start_date, $end_date ?? null);
|
||||
|
||||
$this->createsSeasonalSegment->execute($seasonalSegmentObject);
|
||||
$this->assignSegmentProcessor->execute($company, $segment->id);
|
||||
}
|
||||
|
||||
|
||||
if(config('perfexcrm.is_enabled') == 'true'){
|
||||
//$this->createPerfexCRMLeadProcessor->execute($request);
|
||||
$createLeadPerfexCRMObject = new CreateLeadPerfexCRMObject(
|
||||
|
||||
Reference in New Issue
Block a user