PATCH: Ref/Catalog new functions

This commit is contained in:
Victor Radael
2022-10-18 14:13:24 -03:00
parent b8c41fad1b
commit 0de5e1d5d1
3 changed files with 13 additions and 3 deletions
+5 -2
View File
@@ -25,7 +25,9 @@ import { RequestUser, User } from 'src/authentication/user.decorator';
import {
ICatalogAllResponse,
IColumnsMetadataResponse,
IDeleteComment,
IDocsResponse,
IMakeAComment,
IOneDataAsset,
IPreviewResponse,
IUpdateDataRequest,
@@ -380,8 +382,9 @@ export class CatalogController {
async commentOnDataAsset(
@Param('id') id: string,
@User() user: RequestUser,
@Body('message') message: string,
@Body() body: IMakeAComment,
) {
const { message } = body;
const { customer_id, customer_name, user_id, username } = user;
const metadata = PackTheMetadata({
customer_id,
@@ -401,7 +404,7 @@ export class CatalogController {
async deleteComment(
@Param('id') id: string,
@User() user: RequestUser,
@Body() body,
@Body() body: IDeleteComment,
) {
const { customer_id, customer_name, user_id, username } = user;
const metadata = PackTheMetadata({
+7
View File
@@ -81,6 +81,13 @@ export class IComment {
message: string;
@ApiProperty()
created_at: string;
@ApiProperty()
username: string;
}
export class IMakeAComment {
@ApiProperty()
message: string;
}
export class IDeleteComment {
+1 -1
View File
File diff suppressed because one or more lines are too long