feat add questions module and admin routes
This commit is contained in:
@@ -70,9 +70,7 @@ export class TestsCommandProvider {
|
||||
(accessType === AccessType.PAID && !price) ||
|
||||
(accessType !== AccessType.PAID && price)
|
||||
) {
|
||||
throw new BadRequestException(
|
||||
this.i18nService.translate('tests.errors.priceAccessConstraint'),
|
||||
);
|
||||
throw new BadRequestException('tests.errors.priceAccessConstraint');
|
||||
}
|
||||
|
||||
Object.assign(test, updateTestDto);
|
||||
|
||||
Reference in New Issue
Block a user