Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

Update total_sales_gross casting

Dave Earleybf74edf01c5e
diff --git a/backend/app/Models/Affiliate.php b/backend/app/Models/Affiliate.php
index e0b9631d4..1ba6cd57d 100644
--- a/backend/app/Models/Affiliate.php
+++ b/backend/app/Models/Affiliate.php
@@ -9,6 +9,13 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
class Affiliate extends BaseModel
{
+ protected function getCastMap(): array
+ {
+ return [
+ 'total_sales_gross' => 'float',
+ ];
+ }
+
public function event(): BelongsTo
{
return $this->belongsTo(Event::class);