fix(build): resolve linter and tsconfig project service errors, guarantee dist/main existence in start-dev
Deploy Canina / deploy (push) Has been cancelled

This commit is contained in:
parsa aghaei committed 2026-08-18 20:23:59 +03:30
1 parent a291fa0c4a
commit 6362750dea
50 files changed
+12128 -10959

No files matched your search

+10 -6
View File
@@ -42,14 +42,16 @@ export class SettingsController {
@Roles('Admin')
@ApiBearerAuth()
@Put('ui-texts/:key')
@ApiOperation({ summary: 'ویرایش یا ثبت متن یک کلید در رابط کاربری با متد PUT' })
@ApiOperation({
summary: 'ویرایش یا ثبت متن یک کلید در رابط کاربری با متد PUT',
})
putUiText(@Param('key') key: string, @Body() body: any) {
const val =
typeof body === 'object' && body !== null && 'value' in body
? body.value
: typeof body === 'string'
? body
: JSON.stringify(body);
? body
: JSON.stringify(body);
return this.settingsService.updateUiText(key, String(val ?? ''));
}
@@ -57,14 +59,16 @@ export class SettingsController {
@Roles('Admin')
@ApiBearerAuth()
@Patch('ui-texts/:key')
@ApiOperation({ summary: 'ویرایش یا ثبت متن یک کلید در رابط کاربری با متد PATCH' })
@ApiOperation({
summary: 'ویرایش یا ثبت متن یک کلید در رابط کاربری با متد PATCH',
})
patchUiText(@Param('key') key: string, @Body() body: any) {
const val =
typeof body === 'object' && body !== null && 'value' in body
? body.value
: typeof body === 'string'
? body
: JSON.stringify(body);
? body
: JSON.stringify(body);
return this.settingsService.updateUiText(key, String(val ?? ''));
}