summaryrefslogtreecommitdiff
path: root/Services/MediaService.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-09-05 01:07:12 +1000
committerJake Mannens <jake@asger.xyz>2023-09-05 01:07:12 +1000
commit7bc3919cabff51806068659be03884913054cff8 (patch)
treefc4303c045c80878ee4fbf633e7bc2adf2838163 /Services/MediaService.cs
parentacb74202f5391272c2e1823dfe04a044c7f7a9a7 (diff)
Added Trim() to remove whitespace from key fields
Diffstat (limited to 'Services/MediaService.cs')
-rw-r--r--Services/MediaService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Services/MediaService.cs b/Services/MediaService.cs
index 00eeab5..ccc3283 100644
--- a/Services/MediaService.cs
+++ b/Services/MediaService.cs
@@ -88,8 +88,8 @@ public class MediaService : IMediaService {
if(string.IsNullOrEmpty(longDescription))
longDescription = null;
- m.ShortDescription = shortDescription;
- m.LongDescription = longDescription;
+ m.ShortDescription = shortDescription?.Trim();
+ m.LongDescription = longDescription?.Trim();
db.SaveChanges();
}