fix(linter): resolve all linter rules and type errors across 3 subprojects

This commit is contained in:
parsa aghaei committed 2026-08-02 09:39:53 +03:30
1 parent 5f790a60a9
commit a1f0640483
17 files changed
+201 -104

No files matched your search

@@ -49,10 +49,15 @@ export class CustomHttpExceptionFilter implements ExceptionFilter {
};
});
} else {
const rawMsg = typeof resObj.message === 'string' ? resObj.message : exception.message;
const rawMsg =
typeof resObj.message === 'string'
? resObj.message
: exception.message;
message = this.translateGenericMessage(rawMsg, status);
const rawCode = typeof resObj.code === 'string' ? resObj.code : undefined;
const rawError = typeof resObj.error === 'string' ? resObj.error : undefined;
const rawCode =
typeof resObj.code === 'string' ? resObj.code : undefined;
const rawError =
typeof resObj.error === 'string' ? resObj.error : undefined;
code = rawCode || this.deriveErrorCode(status, rawError);
details = (resObj.details as Record<string, unknown>) || {};
}
+8 -2
View File
@@ -83,7 +83,10 @@ export class SmsService {
* Send OTP Verification Code (Pattern 508079)
*/
async sendOtp(phone: string, otpCode: string): Promise<boolean> {
const bodyId = parseInt(process.env.MELIPAYAMAK_OTP_BODY_ID || '508079', 10);
const bodyId = parseInt(
process.env.MELIPAYAMAK_OTP_BODY_ID || '508079',
10,
);
return this.sendPatternSms({
to: phone,
bodyId,
@@ -99,7 +102,10 @@ export class SmsService {
orderNumber: string,
amount: string,
): Promise<boolean> {
const bodyId = parseInt(process.env.MELIPAYAMAK_ORDER_BODY_ID || '508081', 10);
const bodyId = parseInt(
process.env.MELIPAYAMAK_ORDER_BODY_ID || '508081',
10,
);
return this.sendPatternSms({
to: phone,
bodyId,