mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
soft delete
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ export class SocketMessageDeleteUseCaseService {
|
||||
|
||||
|
||||
async execute(input: MessageOutPutDataDTO) {
|
||||
const result = await this.messageLocalDataSourceService.deleteByMessageId(input.id)
|
||||
const result = await this.messageLocalDataSourceService.update(input.id, { isDeleted: true})
|
||||
|
||||
if(result.isOk()) {
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@ export class SocketMessageUpdateUseCaseService {
|
||||
async execute(data: MessageOutPutDataDTO, tracing?: TracingType) {
|
||||
|
||||
ParamsValidation(MessageOutPutDataDTOSchema, data, tracing)
|
||||
|
||||
tracing?.addEvent("Message existe?")
|
||||
const result = await this.messageLocalDataSourceService.messageExist({id: data.id})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user