Skip to content

Commit

Permalink
Merge pull request #278 from dev-launchers/main
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
pyxld-kris authored Oct 1, 2022
2 parents 7b220d9 + 63db94e commit b019f70
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
11 changes: 6 additions & 5 deletions extensions/users-permissions/models/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

module.exports = {
/**
* Triggered before user creation.
*/
lifecycles:{
async beforeUpdate(params, data) {
data.username=data.username.trim().replace(/\s+/g,'_');
* Triggered before user creation.
*/
lifecycles: {
async beforeUpdate(params, data) {
if (data.username)
data.username = data.username.trim().replace(/\s+/g, '_');
},
},
};
2 changes: 1 addition & 1 deletion production/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ bases:
images:
- name: devlaunchers/cms-api
newName: devlaunchers/cms-api
newTag: 2.0.1 # {"$imagepolicy": "strapi:strapi:tag"}
newTag: 2.1.0 # {"$imagepolicy": "strapi:strapi:tag"}
4 changes: 2 additions & 2 deletions staging/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: strapi-staging
bases:
- ../workload
- ./configmap.yaml
- ./kservice.yaml
images:
- name: devlaunchers/cms-api
newName: devlaunchers/cms-api
newTag: d48d48c-202208111952 # {"$imagepolicy": "strapi-staging:strapi:tag"}
newTag: 6216b14-202209272114 # {"$imagepolicy": "strapi-staging:strapi:tag"}
3 changes: 2 additions & 1 deletion workload/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
app: strapi
spec:
ports:
- port: 1337
- name: server
port: 1337
selector:
app: strapi

0 comments on commit b019f70

Please sign in to comment.