fix gitlab tests

This commit is contained in:
root
2026-06-09 02:32:58 -04:00
parent 20a0b6c4e5
commit 6def9993da
1489 changed files with 10449 additions and 11356 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;