refactor: only decorate response for now
This commit is contained in:
parent
6225ee26b6
commit
b280c63799
|
@ -5,12 +5,6 @@ const decorate = compose(
|
||||||
Packer(),
|
Packer(),
|
||||||
);
|
);
|
||||||
|
|
||||||
const ActionPacket = (latus) => class ActionPacket extends Packet {
|
const ActionPacket = () => class ActionPacket extends Packet {};
|
||||||
|
|
||||||
static respond(packet) {
|
export default () => decorate(ActionPacket());
|
||||||
latus.get('%store').dispatch(packet.data);
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
export default (latus) => decorate(ActionPacket(latus));
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user