File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ AV.init({
1010 appId: process .env .LEANCLOUD_APP_ID ,
1111 appKey: process .env .LEANCLOUD_APP_KEY ,
1212 masterKey: process .env .LEANCLOUD_APP_MASTER_KEY
13+ hookKey: process .env .LEANCLOUD_APP_HOOK_KEY
1314});
1415
1516app .use (AV .express ());
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ declare namespace Express {
2525interface InitializeOptions {
2626 appId : string ,
2727 appKey : string ,
28- masterKey : string
28+ masterKey ?: string ,
29+ hookKey ?: string ,
2930}
3031
3132interface MiddlewareOptions {
Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ Cloud.start = function() {
239239 appId : process . env . LEANCLOUD_APP_ID ,
240240 appKey : process . env . LEANCLOUD_APP_KEY ,
241241 masterKey : process . env . LEANCLOUD_APP_MASTER_KEY ,
242+ hookKey : process . env . LEANCLOUD_APP_HOOK_KEY ,
242243 } ) ;
243244 }
244245 const app = AV . express ( ) ;
You can’t perform that action at this time.
0 commit comments