fix backend CORS: add global CORS filter and catch-all OPTIONS route; fix MySQL insert errors: set updatedField to empty string instead of null in models without updated_at column

This commit is contained in:
Jürg Hallenbarter
2026-05-13 13:59:31 +02:00
parent 092bb53324
commit 7c81586d3f
8 changed files with 16 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ class CategoryModel extends Model
protected $useTimestamps = true;
protected $createdField = 'created_at';
protected $updatedField = null;
protected $updatedField = '';
protected $validationRules = [
'user_id' => 'required',