INNER CODE UNIT · TypeScript
newFlights
Thorium-Sim/thorium · server/app.ts:224
const newFlights = flights.map(({timeouts, ...f}) => f);
const newMotus = motus.map(m => m.address);
return {...snapshot, flights: newFlights, motus: newMotus};
}
setMutations = (resolvers: {[key: string]: Function}) => {
this.mutations = resolvers;
};
// TODO: Add a proper context type
handleEvent(param: any, eventName: string, context?: any) {
this.timestamp = new Date();
this.version = this.version + 1;
context = context || {};
handleTrigger(eventName, param, context);
heap.track(eventName, this.thoriumId, param, context);
process.env.NODE_ENV === "production" && this.snapshot();
const {clientId, isMutation, core} = context;
pubsub.publish("events", {