fix: sync types
This commit is contained in:
parent
6914485cb5
commit
b7dcb30f22
|
@ -13,9 +13,8 @@ export default (flecks) => {
|
|||
await super.acceptPacket(packet);
|
||||
const {s13nType} = packet;
|
||||
if ('create' === s13nType) {
|
||||
const {Room} = flecks.get('$avocado/resource.resources');
|
||||
const {id} = packet.data.synchronized;
|
||||
this.emit('created', this.synchronized(Room.resourceId, id));
|
||||
const {id, type} = packet.data.synchronized;
|
||||
this.emit('created', this.synchronized(type, id));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user