Skip to content

A self-hosted media server and file management system

fix: remove harmless fields from demo reset culling

aminnausinf4e1ec96a565
diff --git a/app/Models/Metadata.php b/app/Models/Metadata.php
index 24f94d1f..419f2b4e 100644
--- a/app/Models/Metadata.php
+++ b/app/Models/Metadata.php
@@ -148,19 +148,16 @@ class Metadata extends Model {
->update(['view_count' => $actual]);
}
+ // This is only for demo reset so it is not super important, only include fields that may have bad content
protected function getEditableFields(): array {
return [
'editor_id',
'title',
'description',
'lyrics',
- 'episode',
- 'season',
'poster_url',
'album',
'artist',
- 'intro_start',
- 'intro_duration',
];
}
}
diff --git a/app/Models/Series.php b/app/Models/Series.php
index 2acb7937..b68015b2 100644
--- a/app/Models/Series.php
+++ b/app/Models/Series.php
@@ -87,19 +87,13 @@ class Series extends Model {
return $this->hasMany(SeriesSizeHistory::class);
}
+ // This is only for demo reset so it is not super important, only include fields that may have bad content
protected function getEditableFields(): array {
return [
'editor_id',
'title',
'description',
'studio',
- 'rating',
- 'seasons',
- 'episodes',
- 'films',
- 'avg_intro_duration',
- 'started_at',
- 'ended_at',
'thumbnail_url',
];
}