chore: apply ESLint auto-fix across entire backend
Build and Push Multi-Platform Images / build-and-push (push) Successful in 41s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 41s
Reformats code style (line breaks, indentation, type annotations) without changing logic. Also includes minor feature additions bundled in the same lint run (stats service, user-settings groups, agrarmonitor polling improvements). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -20,7 +20,9 @@ export class AgrarmonitorController {
|
||||
@Post('register')
|
||||
@HttpCode(200)
|
||||
@RequirePermissions(Permission.MANAGE_SETTINGS)
|
||||
async registerDevice(@Body() body: { pcName: string; agrarmonitorId: string }) {
|
||||
async registerDevice(
|
||||
@Body() body: { pcName: string; agrarmonitorId: string },
|
||||
) {
|
||||
return this.service.registerDevice(body.pcName, body.agrarmonitorId);
|
||||
}
|
||||
|
||||
@@ -32,8 +34,23 @@ export class AgrarmonitorController {
|
||||
|
||||
@Put('polling-config')
|
||||
@RequirePermissions(Permission.MANAGE_SETTINGS)
|
||||
async updatePollingConfig(@Body() body: { tagFertig: string; tagVerbucht: string; tagHochgeladen: string; linkField: string; tagManuell: string }) {
|
||||
return this.pollingService.updatePollingConfig(body.tagFertig, body.tagVerbucht, body.tagHochgeladen, body.linkField, body.tagManuell ?? '');
|
||||
async updatePollingConfig(
|
||||
@Body()
|
||||
body: {
|
||||
tagFertig: string;
|
||||
tagVerbucht: string;
|
||||
tagHochgeladen: string;
|
||||
linkField: string;
|
||||
tagManuell: string;
|
||||
},
|
||||
) {
|
||||
return this.pollingService.updatePollingConfig(
|
||||
body.tagFertig,
|
||||
body.tagVerbucht,
|
||||
body.tagHochgeladen,
|
||||
body.linkField,
|
||||
body.tagManuell ?? '',
|
||||
);
|
||||
}
|
||||
|
||||
@Post('run-polling')
|
||||
@@ -60,7 +77,9 @@ export class AgrarmonitorController {
|
||||
@Post('merge-correspondents')
|
||||
@HttpCode(200)
|
||||
@RequirePermissions(Permission.MANAGE_SETTINGS)
|
||||
async mergeCorrespondents(@Body() body: { keepId: number; deleteId: number }) {
|
||||
async mergeCorrespondents(
|
||||
@Body() body: { keepId: number; deleteId: number },
|
||||
) {
|
||||
return this.pollingService.mergeCorrespondents(body.keepId, body.deleteId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user