aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2021-06-18 19:15:08 -0400
committerPatrick Barron <barronpm@gmail.com>2021-06-18 19:15:08 -0400
commit54fdc2fd889cd8c13f327b3e929482647a54329b (patch)
treebb844ef7ccf28156438d1aafa50b238a6cac7072
parentbe88efce3cbbd357142a75f109258d6c7be398b4 (diff)
Use ExecuteSqlInterpolated instead of ExecuteSqlRaw
oop
-rw-r--r--Jellyfin.Server.Implementations/Devices/DeviceManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
index 9fd2e5ad4..6bdf7b84e 100644
--- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
+++ b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
@@ -50,7 +50,7 @@ namespace Jellyfin.Server.Implementations.Devices
{
await using var dbContext = _dbProvider.CreateContext();
await dbContext.Database
- .ExecuteSqlRawAsync($"UPDATE [DeviceOptions] SET [CustomName] = ${options.CustomName}")
+ .ExecuteSqlInterpolatedAsync($"UPDATE [DeviceOptions] SET [CustomName] = {options.CustomName}")
.ConfigureAwait(false);
DeviceOptionsUpdated?.Invoke(this, new GenericEventArgs<Tuple<string, DeviceOptions>>(new Tuple<string, DeviceOptions>(deviceId, options)));