fix(core): update

This commit is contained in:
Philipp Kunz 2019-09-17 14:01:24 +02:00
parent c27fc147b5
commit 09b593e192
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ interface IDemoReqRes {
tap.test('ReactionRequest and ReactionResponse should work', async () => {
const reactionResponse = new smartuniverse.ReactionResponse<IDemoReqRes>({
channels: [testClientUniverse.getChannel(testChannelData.channelName)],
channels: [testUniverse.getChannel(testChannelData.channelName)],
funcDef: async reqData => {
console.log(reqData);
return {

View File

@ -68,7 +68,7 @@ export class Universe {
/**
* returns a channel
*/
public getChannelByName(channelNameArg: string) {
public getChannel(channelNameArg: string) {
return this.universeCache.channelMap.find(channelArg => {
return channelArg.name === channelNameArg;
});