mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor(server): api key auth (#3054)
This commit is contained in:
parent
f9671dfbf7
commit
399312ead3
7 changed files with 53 additions and 66 deletions
|
|
@ -56,6 +56,7 @@ describe(APIKeyService.name, () => {
|
|||
|
||||
it('should update a key', async () => {
|
||||
keyMock.getById.mockResolvedValue(keyStub.admin);
|
||||
keyMock.update.mockResolvedValue(keyStub.admin);
|
||||
|
||||
await sut.update(authStub.admin, 'random-guid', { name: 'New Name' });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue