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