Skip to content

Commit

Permalink
fix: cast 'variables' attribute to array in model
Browse files Browse the repository at this point in the history
The 'variables' attribute is now explicitly cast to an array to prevent assertion errors in the EmailRequest test.

Fixes hngprojects#649
  • Loading branch information
idehen-divine committed Mar 2, 2025
1 parent 307820c commit b78f243
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Models/EmailRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ class EmailRequest extends Model
protected $table = 'email_requests';
protected $keyType = 'uuid';
public $incrementing = false;
protected $casts = [
'variables' => 'array',
];
protected $fillable = [
"template_id",
"subject",
Expand Down

0 comments on commit b78f243

Please sign in to comment.