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