Reformatted the latest PRs

This commit is contained in:
Kasra Bigdeli
2019-11-10 18:32:50 -05:00
parent 533ea28a1e
commit 515e11a064
2 changed files with 15 additions and 13 deletions
+4 -4
View File
@@ -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",
+11 -9
View File
@@ -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