fix(linter): resolve all linter rules and type errors across 3 subprojects
This commit is contained in:
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>) || {};
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user