mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-24 06:24:07 +00:00
Update CS models, deps
This commit is contained in:
1 parent
b2990b5a2e
commit
7dcccdcd6c
121 files changed
+1004
-854
No files matched your search
@@ -12,7 +12,7 @@ namespace Spacebar.AdminApi.Controllers.Media;
|
||||
[Route("/media/user")]
|
||||
public class UserMediaController(ILogger<UserMediaController> logger, SpacebarDbContext db, SpacebarAspNetAuthenticationService auth, IServiceProvider sp) : ControllerBase {
|
||||
[HttpGet("{userId}/attachments")]
|
||||
public async IAsyncEnumerable<Attachment> GetAttachmentsByUser(string userId) {
|
||||
public async IAsyncEnumerable<Attachment> GetAttachmentsByUser(long userId) {
|
||||
(await auth.GetCurrentUserAsync(Request)).GetRights().AssertHasAllRights(SpacebarRights.Rights.OPERATOR);
|
||||
|
||||
var db2 = sp.CreateScope().ServiceProvider.GetService<SpacebarDbContext>();
|
||||
|
||||
Reference in new issue
Block a user