Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: mattermost webhook disable preprod #501

Merged
merged 1 commit into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ spec:
EXPO_ACCESS_TOKEN: AgCSEyga40Sx7wSQdiFZK9/fNIy3yVCVWVHDdsYmnNXLlrijmm7ez6atR0iYTEjwM6An+n65ccerGeiEEdjPdogEc23/3zJR8IgVKJ4ry6a/afLxvMeuN9yjiD0mBNknCfBKdRZq2YdPiG5pZF6cKbqrywGbtoCYxD6GGUOlTTpDXzefR8aTuMpKqIdxCxESlgEOyGT43sefMvNzfpeM3AlJcowI/KRn6dcYrh+kecwKTAAbRliTAl0W1ggx7hLpprOLXafVgkVRtSBWejefEsWdQjbOQxJ/LFxej0+LQ7wOqaG6XYPjkKZehVwNXWDxDfGFcebi4nc/zZBv8T8Qp334wEy/t2oTYoAHmyVZnSN15gxmUKEAGYZR2GDjWzCB7TsWgV1UziPS3ooRLIYQBjJKVJgK5bKXTBP94PaMTUfGj57JlvpWjgCnnJCzi6Z6E+17hfQSKG+CcL3kVjFbum4Mq+Gg9k8JZnIOjg0UvqedQDPE2mFYkZs6UK5oenvdb8Hz7sGZpy8JTb2yaRQ1kT/QFrkqsluKVkOMsQntV1DSs6c9fuO3EL/jrG9n99Y7SMC/1f2th4vMZ0jTOMJ2yPhcvuPs0uIBL1tG5H9D2p3cgPxMX+34u//b153+jhlDUVlvWw5Y8tKuf0ETH3nzJHlPw5utGj9MIdD+xCloKkUno8D9/n6O3CqoDGg06XOpIjx+avV9aNZMnCeHezatTb6cpxL49vdI9tutkpDGF6Pzna0G2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kw8FRTN90gUD6OruO9wI3GuIl2I86ByJxuNdDa+iP1sQ/+y/iMvYZBqL1O9taRyFYXgbNtH5GTZWAsXsGCvUuQ/CQgSi2KBzdhKSbRhuSjAGWem6JVTAcJSMP/nYPBgaKrAbQGi56GpzKy5OxJmN4VkC6ZibUzrFSvbVzEaUw0IUO3xnh5Nw190/lMuMxoYlXgzjIJkuYezHuMpsewcbACaI=
template:
metadata:
annotations:
Expand Down
2 changes: 1 addition & 1 deletion api-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"pre:dev": "npm run prisma-setup && cross-env NODE_ENV=development npx prisma db push && npm run format && npm run ts:check",
"dev": "npm run pre:dev && tsx watch ./src/index.ts",
"dev-cronjobs": "npm run pre:dev && tsx watch ./src/cronjobs/index.ts",
"dev-cronjobs": "npm run pre:dev && cross-env NODE_ENV=development tsx watch ./src/cronjobs/index.ts",
"start": "cross-env NODE_ENV=production npm run prisma-setup && npm run prisma-deploy && tsx ./src/index.ts",
"start-cronjobs": "cross-env NODE_ENV=production npm run prisma-setup && npm run prisma-deploy && tsx ./src/cronjobs/index.ts",
"prisma-setup": "prisma generate && prisma migrate deploy",
Expand Down
5 changes: 4 additions & 1 deletion api-node/src/cronjobs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ if (sentryEnabled) {
});
}

if (ENVIRONMENT !== 'development') {
const isLocalDevelopment = process.env.NODE_ENV === 'development';
const isReviewBranch = ENVIRONMENT === 'development';

if (isLocalDevelopment || !isReviewBranch) {
Promise.resolve()
.then(initIndicatorsCleaning) //
.then(initMunicipalities) //
Expand Down
Loading