fixed room mgmt and recorder mgmt basically working
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
// @ts-ignore
|
||||
import Repository from './Repository';
|
||||
import {dictEmptyValToNull} from '@/utils';
|
||||
|
||||
const resource = '/room';
|
||||
|
||||
@@ -19,10 +20,10 @@ export default {
|
||||
},
|
||||
|
||||
createRoom(roomData: any) {
|
||||
return Repository.post(`${resource}`, roomData);
|
||||
return Repository.post(`${resource}`, dictEmptyValToNull(roomData));
|
||||
},
|
||||
|
||||
updateRoom(roomId: number, roomData: any) {
|
||||
return Repository.put(`${resource}/${roomId}`, roomData);
|
||||
return Repository.put(`${resource}/${roomId}`, dictEmptyValToNull(roomData));
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user