add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 deletions
+4 -2
View File
@@ -2,6 +2,8 @@
namespace App\Models;
use App\Models\BaseModel;
class EmailTemplate extends BaseModel
{
protected $table = 'email_templates';
@@ -29,9 +31,9 @@ class EmailTemplate extends BaseModel
->where('is_active', 1)
->where(function ($q) use ($variant) {
$q->where('variant', $variant)
->orWhere('variant', 'default');
->orWhere('variant', 'default');
})
->orderByRaw('CASE WHEN variant = ? THEN 0 ELSE 1 END', [$variant])
->orderByRaw("CASE WHEN variant = ? THEN 0 ELSE 1 END", [$variant])
->first();
return $row;