fix(build): resolve linter and tsconfig project service errors, guarantee dist/main existence in start-dev
Deploy Canina / deploy (push) Has been cancelled
Deploy Canina / deploy (push) Has been cancelled
This commit is contained in:
1 parent
a291fa0c4a
commit
6362750dea
50 files changed
+12128
-10959
No files matched your search
@@ -104,7 +104,10 @@ export class CustomHttpExceptionFilter implements ExceptionFilter {
|
||||
if (lower === 'bad request' || msg === 'Bad Request') {
|
||||
return 'درخواست نامعتبر است. لطفاً پارامترهای ورودی را چک کنید.';
|
||||
}
|
||||
if (lower === 'too many requests' || msg === 'ThrottlerException: Too Many Requests') {
|
||||
if (
|
||||
lower === 'too many requests' ||
|
||||
msg === 'ThrottlerException: Too Many Requests'
|
||||
) {
|
||||
return 'تعداد درخواستهای شما بیش از حد مجاز است. لطفاً کمی صبر کرده و مجدداً تلاش کنید.';
|
||||
}
|
||||
|
||||
|
||||
@@ -297,7 +297,11 @@ export class SmsService {
|
||||
/**
|
||||
* Fetch remaining SMS balance/credit (in Rials or count) from MeliPayamak
|
||||
*/
|
||||
async getCredit(): Promise<{ success: boolean; credit: number; message?: string }> {
|
||||
async getCredit(): Promise<{
|
||||
success: boolean;
|
||||
credit: number;
|
||||
message?: string;
|
||||
}> {
|
||||
const config = await this.getSmsConfig();
|
||||
|
||||
if (!config.username || !config.password) {
|
||||
|
||||
Reference in new issue
Block a user