2019-09-02 03:45:56 +00:00
|
|
|
/** @format */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import { getResourceName } from '../utils';
|
|
|
|
|
|
|
|
const updateOptions = operations => options => {
|
2019-09-06 14:18:44 +00:00
|
|
|
const resourceName = getResourceName( 'options-update', Object.keys( options ) );
|
2019-09-02 03:45:56 +00:00
|
|
|
operations.update( [ resourceName ], { [ resourceName ]: options } );
|
|
|
|
};
|
|
|
|
|
|
|
|
export default {
|
|
|
|
updateOptions,
|
|
|
|
};
|