Skip to content

Commit

Permalink
fix(general): tslint being applied in all sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Mar 8, 2019
1 parent d717de6 commit e9bed77
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/admin.gbapp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

'use strict';

import { GBMinInstance, IGBCoreService, IGBPackage } from 'botlib';
import { GBMinInstance, IGBCoreService, IGBPackage, GBDialogStep } from 'botlib';
import { Sequelize } from 'sequelize-typescript';
import { AdminDialog } from './dialogs/AdminDialog';
import { GuaribasAdmin } from './models/AdminModel';
Expand All @@ -54,6 +54,6 @@ export class GBAdminPackage implements IGBPackage {
}

public loadBot(min: GBMinInstance): void {
AdminDialog.setup(min.bot, min);
AdminDialog.setup(min);
}
}
2 changes: 1 addition & 1 deletion packages/core.gbapp/dialogs/WhoAmIDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class WhoAmIDialog extends IGBDialog {

if (min.instance.whoAmIVideo) {
await step.context.sendActivity(Messages[locale].show_video);
await min.conversationalService.sendEvent(step: GBDialogStep, 'play', {
await min.conversationalService.sendEvent(step, 'play', {
playerType: 'video',
data: min.instance.whoAmIVideo.trim()
});
Expand Down
1 change: 1 addition & 0 deletions packages/core.gbapp/services/TSCompiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
'use strict';

import * as ts from 'typescript';
import { GBLog } from 'botlib';

export class TSCompiler {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class FeedbackDialog extends IGBDialog {
const locale = step.context.activity.locale;

await step.context.sendActivity(Messages[locale].about_suggestions);
step.activeDialog.state.cbId = step.options.id;
step.activeDialog.state.cbId = step.options['id'];

return await step.prompt('textPrompt', Messages[locale].what_about_service);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class QualityDialog extends IGBDialog {
const score = step.result;

setTimeout(
() => min.conversationalService.sendEvent(step: GBDialogStep, 'stop', null),
() => min.conversationalService.sendEvent(step, 'stop', null),
400
);

Expand Down
2 changes: 1 addition & 1 deletion packages/kb.gbapp/dialogs/FaqDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class FaqDialog extends IGBDialog {
const data = await service.getFaqBySubjectArray('faq', null);
const locale = step.context.activity.locale;
if (data) {
await min.conversationalService.sendEvent(step: GBDialogStep, 'play', {
await min.conversationalService.sendEvent(step, 'play', {
playerType: 'bullet',
data: data.slice(0, 10)
});
Expand Down
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
const logger = require('./logger');
const express = require('express');
const bodyParser = require('body-parser');
import { IGBCoreService, IGBInstance, IGBPackage } from 'botlib';
import { IGBCoreService, IGBInstance, IGBPackage, GBLog } from 'botlib';
import { GBAdminService } from '../packages/admin.gbapp/services/GBAdminService';
import { AzureDeployerService } from '../packages/azuredeployer.gbapp/services/AzureDeployerService';
import { GuaribasInstance } from '../packages/core.gbapp/models/GBModel';
Expand Down

0 comments on commit e9bed77

Please sign in to comment.