mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
fix: shared check for server setup availability (#30311)
* fix: shared check for server setup availability * chore: add medium test * feat: require @Authenticated decorator everywhere * fix: lints
This commit is contained in:
parent
1f16fe16c2
commit
a316ba35ca
24 changed files with 249 additions and 66 deletions
|
|
@ -38,9 +38,6 @@ export const errorDto = {
|
|||
incorrectLogin: {
|
||||
message: 'Incorrect email or password',
|
||||
},
|
||||
alreadyHasAdmin: {
|
||||
message: 'The server already has an admin',
|
||||
},
|
||||
};
|
||||
|
||||
export const signupResponseDto = {
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ describe('/admin/database-backups', () => {
|
|||
const { status, body } = await request(app).post('/admin/database-backups/start-restore').send();
|
||||
|
||||
expect(status).toBe(400);
|
||||
expect(body).toEqual(errorDto.badRequest('The server already has an admin'));
|
||||
expect(body).toEqual(errorDto.badRequest('Admin setup is not available'));
|
||||
});
|
||||
|
||||
it.sequential('should enter maintenance mode in "database restore mode"', async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue