Skip to content

Commit

Permalink
chore: fix build issue (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux authored Apr 19, 2022
1 parent 595f049 commit 0c554d8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI Pipeline

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: yarn
- run: yarn build
9 changes: 7 additions & 2 deletions src/models/Bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@ const Bot = sequelize.define('bot', {
},
});

type BotTokenInfo = TokenInfo & {
creator_extension_id?: string;
creator_account_id?: string;
};

type InitOptions = {
code: string;
token: TokenInfo;
token: BotTokenInfo;
creator_extension_id?: string;
creator_account_id?: string;
};
Expand All @@ -42,7 +47,7 @@ type InitOptions = {
code,
redirect_uri: process.env.RINGCENTRAL_CHATBOT_SERVER + '/bot/oauth',
});
const token = rc.token!;
const token: BotTokenInfo = rc.token!;
/*
{
access_token: 'xxxxxx',
Expand Down

0 comments on commit 0c554d8

Please sign in to comment.