From 32cef213356bd6bf5a98c2ac9448e922a3104035 Mon Sep 17 00:00:00 2001 From: Alex Bezdieniezhnykh Date: Thu, 17 Apr 2025 08:08:57 +0300 Subject: [PATCH] rename offset property in user --- Azaion.Common/Entities/User.cs | 8 ++++---- Azaion.Services/UserService.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Azaion.Common/Entities/User.cs b/Azaion.Common/Entities/User.cs index 836cd08..fa84977 100644 --- a/Azaion.Common/Entities/User.cs +++ b/Azaion.Common/Entities/User.cs @@ -16,12 +16,12 @@ public class User public class UserConfig { - public UserQueueOffsets? QueueConfig { get; set; } = new(); + public UserQueueOffsets? QueueOffsets { get; set; } = new(); } public class UserQueueOffsets { - public int AnnotationsOffset { get; set; } - public int AnnotationsConfirmOffset { get; set; } - public int AnnotationsCommandsOffset { get; set; } + public ulong AnnotationsOffset { get; set; } + public ulong AnnotationsConfirmOffset { get; set; } + public ulong AnnotationsCommandsOffset { get; set; } } \ No newline at end of file diff --git a/Azaion.Services/UserService.cs b/Azaion.Services/UserService.cs index 4bf003f..3c82826 100644 --- a/Azaion.Services/UserService.cs +++ b/Azaion.Services/UserService.cs @@ -79,7 +79,7 @@ public class UserService(IDbFactory dbFactory, ICache cache) : IUserService { var userConfig = await db.Users.Where(x => x.Email == email).Select(x => x.UserConfig).FirstOrDefaultAsync(token: cancellationToken); userConfig ??= new UserConfig(); - userConfig.QueueConfig = queueOffsets; + userConfig.QueueOffsets = queueOffsets; await db.Users.UpdateAsync(x => x.Email == email, u => new User