Skip to content

A self-hosted media server and file management system

fix: edited at is changed on series and metadata when difference is not meaningful

aminnausin3ae4407b8cea
diff --git a/app/Traits/HasMeaningfulChanges.php b/app/Traits/HasMeaningfulChanges.php
index 05645404..c21a7128 100644
--- a/app/Traits/HasMeaningfulChanges.php
+++ b/app/Traits/HasMeaningfulChanges.php
@@ -6,6 +6,6 @@ use Illuminate\Database\Eloquent\Model;
trait HasMeaningfulChanges {
protected function hasMeaningfulChanges(Model $model, array $ignoredFields = []): bool {
- return collect($model->getDirty())->diff($ignoredFields)->isNotEmpty();
+ return collect($model->getDirty())->except($ignoredFields)->isNotEmpty();
}
}