Commit 5d41b124 by Vladislav

#20347 Синхронизация наборов минус фраз

1 parent 768f2aee
...@@ -64,7 +64,7 @@ class AddNegativeKeywordSharedSets extends DirectRequest ...@@ -64,7 +64,7 @@ class AddNegativeKeywordSharedSets extends DirectRequest
Log::debug($add_result); Log::debug($add_result);
Log::debug($this->getParams()['NegativeKeywordSharedSets'][$key]); Log::debug($this->getParams()['NegativeKeywordSharedSets'][$key]);
GoalNegativeKeywordSharedSet::where('external_id', $goalNegativeKeywordSharedSet->external_id) GoalNegativeKeywordSharedSet::where('id', $goalNegativeKeywordSharedSet->id)
->update([ ->update([
'reserve_create_at' => null, 'reserve_create_at' => null,
]); ]);
...@@ -74,7 +74,7 @@ class AddNegativeKeywordSharedSets extends DirectRequest ...@@ -74,7 +74,7 @@ class AddNegativeKeywordSharedSets extends DirectRequest
$external_id = (string)$add_result['Id']; $external_id = (string)$add_result['Id'];
GoalNegativeKeywordSharedSet::where('external_id', $external_id) GoalNegativeKeywordSharedSet::where('id', $goalNegativeKeywordSharedSet->getKey())
->update([ ->update([
'external_id' => $external_id, 'external_id' => $external_id,
'external_upload_at' => Carbon::now(), 'external_upload_at' => Carbon::now(),
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!