change(ui) - alert PUT to POST

This commit is contained in:
Shekar Siri 2022-11-02 11:19:34 +01:00
parent a3fc6997d9
commit 810cba45ef

View file

@ -41,7 +41,7 @@ const reducer = (state = initialState, action = {}) => {
export function save(instance) {
return {
types: crudDuck.actionTypes.SAVE.toArray(),
call: client => client.put( instance[idKey] ? `/alerts/${ instance[idKey] }` : '/alerts', instance.toData()),
call: client => client.post( instance[idKey] ? `/alerts/${ instance[idKey] }` : '/alerts', instance.toData()),
};
}