mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
change list
This commit is contained in:
@@ -32,15 +32,10 @@ export class RoomRepositoryService {
|
||||
|
||||
async create(data: RoomInputDTO) {
|
||||
|
||||
this.list()
|
||||
|
||||
const result = await this.roomRemoteDataSourceService.createRoom(data)
|
||||
|
||||
if(result.isOk()) {
|
||||
|
||||
console.log('result', result)
|
||||
this.roomMemoryDataSourceService.dispatch( addRoom(result.value) )
|
||||
|
||||
this.roomMemoryDataSourceService.dispatch(addRoom(result.value))
|
||||
this.roomLocalDataSourceService.createRoom(result.value.data)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user