chore(server): prettify files

This commit is contained in:
a.bouhuolia
2023-02-07 20:25:22 +02:00
parent 2e3b2cbf92
commit f2e1efcb45
7 changed files with 12 additions and 29 deletions

View File

@@ -6,4 +6,4 @@ class HttpException extends Error {
this.status = status;
this.message = message;
}
}
}

View File

@@ -1,5 +1,3 @@
export default class PaymentInputInvalid {
constructor() {}
}
}

View File

@@ -1,6 +1,5 @@
import ServiceError from './ServiceError';
export default class ServiceErrors {
errors: ServiceError[];
@@ -9,7 +8,8 @@ export default class ServiceErrors {
}
hasType(errorType: string) {
return this.errors
.some((error: ServiceError) => error.errorType === errorType);
return this.errors.some(
(error: ServiceError) => error.errorType === errorType
);
}
}
}

View File

@@ -1,7 +1,3 @@
export default class TenantAlreadyInitialized {
constructor() {
}
}
constructor() {}
}

View File

@@ -1,9 +1,3 @@
export default class TenantAlreadySeeded {
constructor() {
}
}
constructor() {}
}

View File

@@ -1,7 +1,3 @@
export default class TenantDatabaseNotBuilt {
constructor() {
}
}
constructor() {}
}

View File

@@ -1,4 +1,3 @@
export default class VoucherCodeRequired {
constructor() {
this.name = 'VoucherCodeRequired';