🐛 Bug fixes
This commit is contained in:
parent
19174de873
commit
a6ca869f29
@ -63,7 +63,7 @@ public class AccountController(
|
||||
[MaxLength(128)]
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
[MaxLength(128)] [RegularExpression("^[a-z]{2,3}$")] public string Language { get; set; } = "en-us";
|
||||
[MaxLength(128)] public string Language { get; set; } = "en-us";
|
||||
|
||||
[Required] public string CaptchaToken { get; set; } = string.Empty;
|
||||
}
|
||||
@ -140,7 +140,7 @@ public class AccountController(
|
||||
public class BasicInfoRequest
|
||||
{
|
||||
[MaxLength(256)] public string? Nick { get; set; }
|
||||
[MaxLength(32)] [RegularExpression("^[a-z]{2,3}$")] public string? Language { get; set; }
|
||||
[MaxLength(32)] public string? Language { get; set; }
|
||||
}
|
||||
|
||||
[Authorize]
|
||||
|
@ -51,7 +51,6 @@ public partial class ChatController(AppDatabase db, ChatService cs) : Controller
|
||||
);
|
||||
|
||||
return Ok(result);
|
||||
|
||||
}
|
||||
|
||||
public class SendMessageRequest
|
||||
|
@ -21,7 +21,8 @@ public class MessageReadReceiptFlushHandler(IServiceProvider serviceProvider) :
|
||||
.ToList();
|
||||
|
||||
using var scope = serviceProvider.CreateScope();
|
||||
var db = scope.ServiceProvider.GetRequiredService<AppDatabase>(); await db.BulkInsertAsync(distinctItems);
|
||||
var db = scope.ServiceProvider.GetRequiredService<AppDatabase>();
|
||||
await db.BulkInsertAsync(distinctItems, config => config.ConflictOption = ConflictOption.Ignore);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user