mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix: replace first and last name with single field (#4915)
This commit is contained in:
parent
413ab2c538
commit
7fca0d8da5
98 changed files with 567 additions and 1147 deletions
|
|
@ -111,7 +111,7 @@ describe(`${ServerInfoController.name} (e2e)`, () => {
|
|||
|
||||
it('should only work for admins', async () => {
|
||||
const loginDto = { email: 'test@immich.app', password: 'Immich123' };
|
||||
await api.userApi.create(server, accessToken, { ...loginDto, firstName: 'test', lastName: 'test' });
|
||||
await api.userApi.create(server, accessToken, { ...loginDto, name: 'test' });
|
||||
const { accessToken: userAccessToken } = await api.authApi.login(server, loginDto);
|
||||
const { status, body } = await request(server)
|
||||
.get('/server-info/statistics')
|
||||
|
|
@ -132,9 +132,8 @@ describe(`${ServerInfoController.name} (e2e)`, () => {
|
|||
{
|
||||
photos: 0,
|
||||
usage: 0,
|
||||
userFirstName: 'Immich',
|
||||
userName: 'Immich Admin',
|
||||
userId: loginResponse.userId,
|
||||
userLastName: 'Admin',
|
||||
videos: 0,
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue