This commit is contained in:
2022-05-31 18:55:14 -04:00
parent 97770ffe95
commit b3f7f13d6b
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ function __construct() {
public function loadMemberActiveCoupons($member_id,$fliters=[]){
$sql="SELECT ca.code, ca.amount, ca.added,ca.status
$sql="SELECT id, ca.code, ca.amount, ca.added::date,ca.status
FROM coupons_allocation ca WHERE ca.member_id = $member_id ORDER BY ca.id DESC";
$q = $this->db->query($sql);
return $q;