File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export const fastifyDevConstructor = (opts?: Parameters<typeof fastifyConstructo
2121 * Maybe because of not handling the generics of fastifyConstructor
2222 */
2323
24- const fastify = fastifyConstructor ( Object . assign ( { } , { logger : true } , opts ) ) ;
24+ const fastify = fastifyConstructor ( { logger : true , ... opts } ) ;
2525
2626 /**
2727 * デフォルトのエラーハンドラはエラーをログに出力して握り潰すため,
Original file line number Diff line number Diff line change @@ -6,10 +6,8 @@ import logger from '../lib/logger.js';
66import { Page } from '../lib/scrapbox' ;
77import type { SlackInterface } from '../lib/slack' ;
88
9- const welcomePageTitleLc = 'welcome' ;
10-
119async function postWelcomeMessage ( slack : WebClient , channel : string ) {
12- const welcomePage = new Page ( { titleLc : welcomePageTitleLc , isEncoded : false } ) ;
10+ const welcomePage = new Page ( { titleLc : 'welcome' , isEncoded : false } ) ;
1311 const text = ( await welcomePage . fetchInfo ( ) ) . lines . map ( ( { text} : { text : string } ) => text ) . slice ( 1 ) . join ( '\n' ) ;
1412
1513 return slack . chat . postMessage ( {
You can’t perform that action at this time.
0 commit comments