fix: sync types

This commit is contained in:
cha0s 2022-05-03 03:36:13 -05:00
parent 6914485cb5
commit b7dcb30f22

View File

@ -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));
}
}