Skip to content

Commit eca6d1a

Browse files
committed
Fix regression bug in api-url generation
1 parent 489d2ea commit eca6d1a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ShinyDeploy/Domain/Database/ApiKeys.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function addApiKey(int $deploymentId) : array
4242
}
4343
return [
4444
'apiKey' => $apiKey,
45-
'password' => $passwordForUrl
45+
'apiPassword' => $passwordForUrl
4646
];
4747
}
4848

www/js/app/deployments/DeploymentsEditController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
return false;
147147
}
148148
var webhookUrl = location.protocol+'//'+location.hostname;
149-
webhookUrl += '/api.php?ak='+data.apiKey+'&ap='+data.password;
149+
webhookUrl += '/api.php?ak='+data.apiKey+'&ap='+data.apiPassword;
150150
vm.apiUrl = webhookUrl;
151151
}, function (reason) {
152152
alertsService.pushAlert(reason, 'warning');

0 commit comments

Comments
 (0)