also rm hmac key and pushkit token from contact

This commit is contained in:
Evan Feenstra 2023-12-14 12:52:53 -08:00
parent 4af0fd7400
commit 0d78b4a6a9
4 changed files with 6 additions and 2 deletions

View file

@ -270,6 +270,8 @@ function clearForTesting(req, res) {
contactKey: '',
alias: '',
deviceId: '',
hmacKey: '',
pushKitToken: '',
});
(0, res_1.success)(res, { clean: true });
}

File diff suppressed because one or more lines are too long

View file

@ -14,7 +14,7 @@
"start-password": "USE_PASSWORD=true ts-node ./app.ts",
"start-hosting": "HOSTING_PROVIDER=true ts-node ./app.ts",
"prod": "cp config/app.json dist/config/app.json && cp config/config.json dist/config/config.json && env NODE_ENV=production node dist/app.js",
"tsc": "rm -rf dist/ && npx tsc && cp -r public dist/public",
"tsc": "rm -rf dist/ && npx tsc",
"dev": "rm -rf dist/ && tsc && cp -r public dist/public && node --inspect ./dist/app.js",
"build-binaries": "rm -rf dist/ && tsc && cp config/app.json dist/config/app.json && cp config/config.json dist/config/config.json && pkg . --target node12-alpine-x64,node12-macos-x64 --out-path binaries",
"start-ecs": "cp config/app.json dist/config/app.json && cp config/config.json dist/config/config.json && export NODE_ENV=production && node --max-old-space-size=128 dist/app.js",

View file

@ -250,6 +250,8 @@ export async function clearForTesting(req: Req, res) {
contactKey: '',
alias: '',
deviceId: '',
hmacKey: '',
pushKitToken: '',
})
success(res, { clean: true })
} catch (e) {