chore(server): remove user count endpoint (#4724)

* chore: remove unused endpoint

* chore: open api
This commit is contained in:
Jason Rasmussen
2023-10-30 15:29:18 -04:00
committed by GitHub
parent 2f87463170
commit 8dcd159bd6
21 changed files with 3 additions and 613 deletions

View File

@@ -220,24 +220,6 @@ describe(UserService.name, () => {
});
});
describe('getCount', () => {
it('should get the user count', async () => {
userMock.getList.mockResolvedValue([adminUser]);
const response = await sut.getCount({});
expect(userMock.getList).toHaveBeenCalled();
expect(response).toEqual({ userCount: 1 });
});
it('should get the user count of all admin users', async () => {
userMock.getList.mockResolvedValue([adminUser, immichUser]);
await expect(sut.getCount({ admin: true })).resolves.toEqual({ userCount: 1 });
expect(userMock.getList).toHaveBeenCalled();
});
});
describe('update', () => {
it('should update user', async () => {
const update: UpdateUserDto = {