Skip to content

Commit

Permalink
Merge pull request #2 from jihongeek/feature
Browse files Browse the repository at this point in the history
Secrets 수정으로 인한 간단 코드 수정
  • Loading branch information
jihongeek authored Sep 13, 2024
2 parents 7d61fbc + 545be81 commit 7ca965b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/send_message.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ jobs:
run : npx tsc && node app.js
env :
NOTION_TOKEN : ${{secrets.NOTION_TOKEN}}
DATABASE_ID : ${{secrets.DATABASE_ID}}
WEBHOOK_URL : ${{secrets.WEBHOOK_URL}}
LINK_DATABASE_URL : ${{secrets.LINK_DATABASE_URL}}
2 changes: 1 addition & 1 deletion app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const sendReservedMessages = async (databaseId:string, webhookUrl:string) => {

try {
if (process.env.LINK_DATABASE_URL === undefined) {
throw new Error("노션 - 디스코드 링크 데이터베이스 ID를 환경변수에서 읽을 수 없습니다.");
throw new Error("노션 - 디스코드 링크 데이터베이스 URL을 환경변수에서 읽을 수 없습니다.");
}
const linkDatabaseUrl : string = process.env.LINK_DATABASE_URL;
sendAllReservedMessages(parseDatabaseId(linkDatabaseUrl));
Expand Down

0 comments on commit 7ca965b

Please sign in to comment.