mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
send delete message
This commit is contained in:
@@ -191,8 +191,13 @@ export class RoomRepositoryService {
|
|||||||
|
|
||||||
if(result.isOk()) {
|
if(result.isOk()) {
|
||||||
|
|
||||||
return await this.roomLocalDataSourceService.deleteRoomById(id)
|
const result = await this.roomLocalDataSourceService.deleteRoomById(id)
|
||||||
|
this.messageLiveDataSourceService.sendMessage({
|
||||||
|
type: 'createRoom',
|
||||||
|
payload: {a: '5'}
|
||||||
|
})
|
||||||
|
|
||||||
|
return result
|
||||||
} else if (isHttpResponse(result.error)) {
|
} else if (isHttpResponse(result.error)) {
|
||||||
if(result.error.status == 404) {
|
if(result.error.status == 404) {
|
||||||
await this.roomLocalDataSourceService.deleteRoomById(id)
|
await this.roomLocalDataSourceService.deleteRoomById(id)
|
||||||
@@ -269,6 +274,7 @@ export class RoomRepositoryService {
|
|||||||
} else if (isHttpResponse(result.error)) {
|
} else if (isHttpResponse(result.error)) {
|
||||||
if(result.error.status == 404) {
|
if(result.error.status == 404) {
|
||||||
await this.roomLocalDataSourceService.deleteRoomById(data.id)
|
await this.roomLocalDataSourceService.deleteRoomById(data.id)
|
||||||
|
|
||||||
}
|
}
|
||||||
// this.httpErrorHandle.httpStatusHandle(result.error)
|
// this.httpErrorHandle.httpStatusHandle(result.error)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user