detect and save unscheduled and unlocked incidents
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
export * from './doorLockActions';
|
||||
export * from './officeRnDActions';
|
||||
export * from './integrationActions';
|
||||
|
||||
@@ -11,7 +11,7 @@ import API from '../../utilities/api';
|
||||
|
||||
export const fetchMappings = (dispatch) => {
|
||||
dispatch({type: FETCH_MAPPINGS_PENDING});
|
||||
API.get('doorLock/mappings')
|
||||
API.get('integration/mappings')
|
||||
.then(response => {
|
||||
dispatch({type: FETCH_MAPPINGS_SUCCESS, payload: response.data});
|
||||
})
|
||||
@@ -22,7 +22,7 @@ export const fetchMappings = (dispatch) => {
|
||||
|
||||
export const addNewMapping = (dispatch, mapping) => {
|
||||
dispatch({type: ADD_NEW_MAPPING_PENDING});
|
||||
API.post('doorLock/mappings', {
|
||||
API.post('integration/mappings', {
|
||||
mapping
|
||||
})
|
||||
.then(response => {
|
||||
Reference in New Issue
Block a user