Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Nov 19, 2023
1 parent 27cd8f4 commit 849e29b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions src/webhook/__tests__/handlePostback.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,6 @@ it('handles ManipulationError fired in handlers', async () => {

it('throws on unknown error', async () => {
const data: Context = { sessionId: FIXED_DATE, searchedText: '' };
const event = {
type: 'postback',
input: `article-id`,
};

choosingArticle.mockImplementationOnce(() =>
Promise.reject(new Error('Unknown error'))
);
Expand Down
1 change: 0 additions & 1 deletion src/webhook/handlers/askingArticleSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {

import { TUTORIAL_STEPS } from './tutorial';


const inputSchema = z.enum([POSTBACK_NO, POSTBACK_YES]);

/** Postback input type for ASKING_ARTICLE_SOURCE state handler */
Expand Down
2 changes: 1 addition & 1 deletion src/webhook/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import UserSettings from '../database/models/userSettings';
import { Request } from 'koa';
import { MessageEvent, TextEventMessage, WebhookEvent } from '@line/bot-sdk';
import { Result } from 'src/types/result';
import { Context, PostbackActionData } from 'src/types/chatbotState';
import { PostbackActionData } from 'src/types/chatbotState';

const userIdBlacklist = (process.env.USERID_BLACKLIST || '').split(',');

Expand Down

0 comments on commit 849e29b

Please sign in to comment.