2017-09-01 19:42:50 +00:00
|
|
|
import * as types from './actionsTypes';
|
|
|
|
|
|
|
|
export function createChannelRequest(data) {
|
|
|
|
return {
|
|
|
|
type: types.CREATE_CHANNEL.REQUEST,
|
|
|
|
data
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function createChannelSuccess(data) {
|
|
|
|
return {
|
|
|
|
type: types.CREATE_CHANNEL.SUCCESS,
|
|
|
|
data
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2021-05-27 17:27:24 +00:00
|
|
|
export function createChannelFailure(err, isTeam) {
|
2017-09-01 19:42:50 +00:00
|
|
|
return {
|
|
|
|
type: types.CREATE_CHANNEL.FAILURE,
|
2021-05-27 17:27:24 +00:00
|
|
|
err,
|
|
|
|
isTeam
|
2017-09-01 19:42:50 +00:00
|
|
|
};
|
|
|
|
}
|