1
0
mirror of https://github.com/bitwarden/server synced 2025-12-23 19:53:40 +00:00

Remove GetManyDetailsByUserAsync & ReplaceAsync DB Calls (#6012)

This commit is contained in:
Justin Baur
2025-06-30 08:08:01 -04:00
committed by GitHub
parent 69b7600eab
commit 386b391dd7
3 changed files with 16 additions and 4 deletions

View File

@@ -206,7 +206,11 @@ public class DevicesController : Controller
throw new NotFoundException();
}
await _deviceService.SaveAsync(model.ToData(), device);
await _deviceService.SaveAsync(
model.ToData(),
device,
_currentContext.Organizations.Select(org => org.Id.ToString())
);
}
[AllowAnonymous]