mirror of
https://github.com/caprover/caprover
synced 2026-09-23 23:25:38 +00:00
Reformatted the latest PRs
This commit is contained in:
+4
-4
@@ -4,11 +4,11 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "node ./bin/www",
|
||||
"dev": "echo 'RECOMPILING' && npx madge --circular --extensions ts ./ && rm -rf ./built && npx tsc && sudo ./dev-scripts/dev-reset-service.sh",
|
||||
"clean": "sudo ./dev-scripts/dev-clean-run-as-dev.sh",
|
||||
"dev": "npm run build && sudo ./dev-scripts/dev-reset-service.sh",
|
||||
"clean": "npm run build && sudo ./dev-scripts/dev-clean-run-as-dev.sh",
|
||||
"tslint": "tslint -c tslint.json -p tsconfig.json",
|
||||
"build": "rm -rf ./built && npx tsc",
|
||||
"test": "rm -rf ./built && npx tsc && jest"
|
||||
"build": "echo 'RECOMPILING' && npx madge --circular --extensions ts ./ && rm -rf ./built && npx tsc",
|
||||
"test": "npm run build && jest"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/bcryptjs": "^2.4.2",
|
||||
|
||||
@@ -228,16 +228,18 @@ class AppsDataStore {
|
||||
return self.getAppDefinition(oldAppName)
|
||||
})
|
||||
.then(function(appData) {
|
||||
if (appData.appPushWebhook && appData.appPushWebhook.pushWebhookToken) {
|
||||
if (
|
||||
appData.appPushWebhook &&
|
||||
appData.appPushWebhook.pushWebhookToken
|
||||
) {
|
||||
const tokenVersion = uuid()
|
||||
return authenticator.getAppPushWebhookToken(
|
||||
newAppName,
|
||||
tokenVersion
|
||||
).then((val) => {
|
||||
appData.appPushWebhook!.pushWebhookToken = val
|
||||
appData.appPushWebhook!.tokenVersion = tokenVersion
|
||||
return appData
|
||||
})
|
||||
return authenticator
|
||||
.getAppPushWebhookToken(newAppName, tokenVersion)
|
||||
.then(val => {
|
||||
appData.appPushWebhook!.pushWebhookToken = val
|
||||
appData.appPushWebhook!.tokenVersion = tokenVersion
|
||||
return appData
|
||||
})
|
||||
}
|
||||
|
||||
return appData
|
||||
|
||||
Reference in New Issue
Block a user