File tree 2 files changed +25
-2
lines changed
2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : CI Pipeline
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ test :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - name : Checkout
10
+ uses : actions/checkout@v2
11
+ with :
12
+ persist-credentials : false
13
+ - name : Use Node.js 14.x
14
+ uses : actions/setup-node@v1
15
+ with :
16
+ node-version : 14.x
17
+ - run : yarn
18
+ - run : yarn build
Original file line number Diff line number Diff line change @@ -21,9 +21,14 @@ const Bot = sequelize.define('bot', {
21
21
} ,
22
22
} ) ;
23
23
24
+ type BotTokenInfo = TokenInfo & {
25
+ creator_extension_id ?: string ;
26
+ creator_account_id ?: string ;
27
+ } ;
28
+
24
29
type InitOptions = {
25
30
code : string ;
26
- token : TokenInfo ;
31
+ token : BotTokenInfo ;
27
32
creator_extension_id ?: string ;
28
33
creator_account_id ?: string ;
29
34
} ;
@@ -42,7 +47,7 @@ type InitOptions = {
42
47
code,
43
48
redirect_uri : process . env . RINGCENTRAL_CHATBOT_SERVER + '/bot/oauth' ,
44
49
} ) ;
45
- const token = rc . token ! ;
50
+ const token : BotTokenInfo = rc . token ! ;
46
51
/*
47
52
{
48
53
access_token: 'xxxxxx',
You can’t perform that action at this time.
0 commit comments