Skip to content

Commit

Permalink
Merge pull request #2943 from airqo-platform/staging
Browse files Browse the repository at this point in the history
move to production
  • Loading branch information
Baalmart authored Jan 23, 2024
2 parents abc8c26 + 5b012f1 commit 0f007bb
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion k8s/auth-service/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app:
replicaCount: 3
image:
repository: eu.gcr.io/airqo-250220/airqo-auth-api
tag: prod-b572fab3-1706011246
tag: prod-abc8c262-1706011801
nameOverride: ''
fullnameOverride: ''
podAnnotations: {}
Expand Down
2 changes: 1 addition & 1 deletion k8s/data-proxy/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app:
replicaCount: 2
image:
repository: eu.gcr.io/airqo-250220/airqo-data-proxy-api
tag: prod-b572fab3-1706011246
tag: prod-abc8c262-1706011801
nameOverride: ''
fullnameOverride: ''
podAnnotations: {}
Expand Down
2 changes: 1 addition & 1 deletion k8s/device-registry/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app:
replicaCount: 3
image:
repository: eu.gcr.io/airqo-250220/airqo-device-registry-api
tag: prod-b572fab3-1706011246
tag: prod-abc8c262-1706011801
nameOverride: ''
fullnameOverride: ''
podAnnotations: {}
Expand Down
2 changes: 1 addition & 1 deletion k8s/gp-model/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app:
namespace: production
configMap: env-gp-model-production
images:
tag: prod-b572fab3-1706011246
tag: prod-abc8c262-1706011801
repositories:
cronJob: eu.gcr.io/airqo-250220/airqo-gp-model-job
brokerConsumer: eu.gcr.io/airqo-250220/airqo-gp-model-broker-consumer
Expand Down
2 changes: 1 addition & 1 deletion k8s/predict/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ images:
predictJob: eu.gcr.io/airqo-250220/airqo-predict-job
trainJob: eu.gcr.io/airqo-250220/airqo-train-job
predictPlaces: eu.gcr.io/airqo-250220/airqo-predict-places-air-quality
tag: prod-b572fab3-1706011246
tag: prod-abc8c262-1706011801
api:
name: airqo-prediction-api
label: prediction-api
Expand Down
2 changes: 1 addition & 1 deletion k8s/workflows/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ images:
repositories:
initContainer: eu.gcr.io/airqo-250220/airqo-workflows-xcom
containers: eu.gcr.io/airqo-250220/airqo-workflows
tag: prod-b572fab3-1706011246
tag: prod-abc8c262-1706011801
nameOverride: ''
fullnameOverride: ''
podAnnotations: {}
Expand Down
6 changes: 3 additions & 3 deletions src/auth-service/models/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -835,8 +835,8 @@ UserSchema.methods.createToken = async function () {
return userWithDerivedAttributes;
} else {
const user = userWithDerivedAttributes.data[0];
// Calculate expiration time (24 hours from now) in seconds
const expirationTime = Math.floor(Date.now() / 1000) + 24 * 60 * 60;
const oneDayExpiry = Math.floor(Date.now() / 1000) + 24 * 60 * 60;
const oneHourExpiry = Math.floor(Date.now() / 1000) + 60 * 60;
logObject("user", user);
return jwt.sign(
{
Expand All @@ -856,7 +856,7 @@ UserSchema.methods.createToken = async function () {
updatedAt: user.updatedAt,
rateLimit: user.rateLimit,
lastLogin: user.lastLogin,
exp: expirationTime,
exp: oneHourExpiry,
},
constants.JWT_SECRET
);
Expand Down

0 comments on commit 0f007bb

Please sign in to comment.