@@ -170,14 +170,14 @@ async function generateRichMenuImage(
170170 // 5. Delete the temporary HTML file
171171 const richMenuImagePath = path . join (
172172 os . tmpdir ( ) ,
173- `templete -0${ templateNo } -${ Date . now ( ) } .png` ,
173+ `template -0${ templateNo } -${ Date . now ( ) } .png` ,
174174 ) ;
175175 const serverPath =
176176 process . env . SERVER_PATH || path . resolve ( __dirname , ".." , ".." ) ;
177177 // 1. Read the Markdown template
178178 const srcPath = path . join (
179179 serverPath ,
180- `richmenu-templetes/templete -0${ templateNo } .md` ,
180+ `richmenu-templates/template -0${ templateNo } .md` ,
181181 ) ;
182182 let content = await fsp . readFile ( srcPath , "utf8" ) ;
183183 for ( let index = 0 ; index < actions . length ; index ++ ) {
@@ -240,7 +240,7 @@ const richmenuBounds = (templateNo: number) => {
240240 const boundsMap : { x : number ; y : number ; width : number ; height : number } [ ] [ ] =
241241 [
242242 [ ] ,
243- // templete -01
243+ // template -01
244244 [
245245 {
246246 x : 0 ,
@@ -249,14 +249,14 @@ const richmenuBounds = (templateNo: number) => {
249249 height : RICHMENU_HEIGHT ,
250250 } ,
251251 ] ,
252- // templete -02
252+ // template -02
253253 [ 0 , 1 ] . map ( i => ( {
254254 x : ( RICHMENU_WIDTH / 2 ) * i ,
255255 y : 0 ,
256256 width : RICHMENU_WIDTH / 2 ,
257257 height : RICHMENU_HEIGHT ,
258258 } ) ) ,
259- // templete -03
259+ // template -03
260260 [
261261 {
262262 x : 0 ,
@@ -271,7 +271,7 @@ const richmenuBounds = (templateNo: number) => {
271271 height : RICHMENU_HEIGHT / 2 ,
272272 } ) ) ,
273273 ] ,
274- // templete -04
274+ // template -04
275275 [ 0 , 1 ]
276276 . map ( i =>
277277 [ 0 , 1 ] . map ( j => ( {
@@ -282,7 +282,7 @@ const richmenuBounds = (templateNo: number) => {
282282 } ) ) ,
283283 )
284284 . flat ( ) ,
285- // templete -05
285+ // template -05
286286 [
287287 {
288288 x : 0 ,
@@ -303,7 +303,7 @@ const richmenuBounds = (templateNo: number) => {
303303 height : RICHMENU_HEIGHT / 2 ,
304304 } ) ) ,
305305 ] ,
306- // templete -06
306+ // template -06
307307 [ 0 , 1 ]
308308 . map ( i =>
309309 [ 0 , 1 , 2 ] . map ( j => ( {
0 commit comments