Fix #6061 Backend: Custom properties creation error (#6098)

This commit is contained in:
mohitdeuex 2022-07-15 04:11:26 +05:30 committed by GitHub
parent 777b08ef13
commit f4e3335ad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,10 @@ public class TypeRepository extends EntityRepository<Type> {
updateTypeMap(type);
}
public void addToRegistry(Type type) {
updateTypeMap(type);
}
@Override
public void storeRelationships(Type type) {
// Nothing to do

View File

@ -114,6 +114,7 @@ public class TypeResource extends EntityResource<Type, TypeRepository> {
LOG.debug("Creating entity that does not exist ", e);
}
this.dao.createOrUpdate(null, type);
this.dao.addToRegistry(type);
} catch (IOException e) {
LOG.error("Error loading type {}", type.getName(), e);
}