minor fixes

This commit is contained in:
2026-01-29 08:56:11 -06:00
parent 876f1f65a2
commit b7e74242b8
8 changed files with 30 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "api",
"version": "2.0.0-beta-3",
"version": "2.0.0-beta-4",
"description": "",
"author": "",
"private": true,

View File

@@ -77,10 +77,11 @@ export class LogController {
@Body() logDto: LogDto
): Promise<UpdateResult> {
try {
console.log(logDto);
return await this.logService.update(id, logDto);
} catch (error) {
const customError = error as CustomError;
console.log(customError)
throw new HttpException(customError.message, customError.statusCode);
}
}

View File

@@ -51,7 +51,11 @@ export class LogService {
}
}
async update(id: string, log: LogDto): Promise<UpdateResult> {
async update(id: string, logDto: LogDto): Promise<UpdateResult> {
const log = logDto
delete log.tracks;
return await this.logRepository.update(id, log);
}