fixed room mgmt and recorder mgmt basically working

This commit is contained in:
Tobias Kurze
2019-04-26 15:34:58 +02:00
parent 03b9637e65
commit 7022ab738b
7 changed files with 101 additions and 42 deletions

View File

@@ -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));
},
};