mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Fix a problem where voucherify campaign vouchers limit not displaying with correct info for the month
This commit is contained in:
@@ -17,7 +17,7 @@ class UserRewardResource extends JsonResource
|
||||
{
|
||||
$emailReminder = null;
|
||||
if ($request->has('isAdmin')) {
|
||||
$keyValuePairs = $this->user->attributes()->get();
|
||||
$keyValuePairs = $this->user->attributesKVP()->get();
|
||||
$emailReminder = KeyValueBasicResource::collection($keyValuePairs);
|
||||
$this->voucher->email = $emailReminder;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class VoucherCampaignResource extends JsonResource
|
||||
{
|
||||
$metadata = null;
|
||||
if ($request->has('include_metadata')) {
|
||||
$metadata = KeyValueBasicResource::collection($this->attributes);
|
||||
$metadata = KeyValueBasicResource::collection($this->attributesKVP()->latest()->get());
|
||||
}
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user