fix(auth): change status code for updating a subscription setting without a subscription

This commit is contained in:
Karol Sójko 2023-04-04 09:08:27 +02:00
parent 720d046c00
commit 3417407cbe
No known key found for this signature in database
GPG key ID: 50D9C5A8D4B8D73F
2 changed files with 2 additions and 2 deletions

View file

@ -168,7 +168,7 @@ describe('UpdateSetting', () => {
error: {
message: 'User 1-2-3 has no subscription to change a subscription setting.',
},
statusCode: 401,
statusCode: 400,
})
})

View file

@ -83,7 +83,7 @@ export class UpdateSetting implements UseCaseInterface {
error: {
message: `User ${userUuid} has no subscription to change a subscription setting.`,
},
statusCode: 401,
statusCode: 400,
}
}