Skip to content

Commit

Permalink
Merge pull request #12 from kanazawarb/fix-container-missing
Browse files Browse the repository at this point in the history
Fix 🐛: ReferenceError container is not defined(line 319, ...
  • Loading branch information
muryoimpl committed Apr 20, 2024
2 parents d311b42 + d9fc879 commit fe3721d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function doPost(e) {
// シャッフルした番号の配列をつくる
const orderNumbers = indexesNumbers(container.length);
// markdown を作り、レスポンスを返す
const mdText = makeMarkdown(container, status, index);
const mdText = makeMarkdown(orderNumbers, container, status, index);

const payload = createMessagePayload(mdText);
return createPublicTextOutput(payload);
Expand Down Expand Up @@ -311,7 +311,7 @@ function indexesNumbers(num = 10) {
return shuffle(nums);
}

function makeMarkdown(orderNumbers, status, index) {
function makeMarkdown(orderNumbers, container, status, index) {
let count = 0;
let mdTable = "```\n"; // | タイトル | 時刻 | 時間 | 担当 |
let mdList = "";
Expand Down

0 comments on commit fe3721d

Please sign in to comment.