TelegramReports: fix

This commit is contained in:
Viktor Fomin 2023-09-24 22:46:09 +03:00
parent 4719e679d9
commit 7296a2e297

View File

@ -2,12 +2,12 @@ import { Body, Controller, Get, Post } from "@nestjs/common";
import { AppService } from "./app.service";
import { AppDto } from "./app.dto";
@Controller("sendtgreport")
@Controller("/api/2.0/sendtgreport")
export class AppController {
constructor(private readonly appService: AppService) { }
@Post()
sendMessage(@Body() appDto: AppDto): Promise<string> {
return this.appService.sendMessage(appDto);
async sendMessage(@Body() appDto: AppDto): Promise<string> {
return await this.appService.sendMessage(appDto);
}
}