@solidstarters/solid-core 1.2.77 → 1.2.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidstarters/solid-core",
3
- "version": "1.2.77",
3
+ "version": "1.2.79",
4
4
  "description": "This module is a NestJS module containing all the required core providers required by a Solid application",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -82,7 +82,7 @@ export class SelectionDynamicFieldCrudManager implements FieldCrudManager {
82
82
 
83
83
  private async isValidSelectionValue(fieldValue: any, selectionDynamicProvider: string): Promise<boolean> {
84
84
  const providerInstance = this.providerInstance<any>(selectionDynamicProvider);
85
- const values = await providerInstance.values('', this.options.selectionDynamicProviderCtxt);
85
+ const values = await providerInstance.values('', JSON.parse(this.options.selectionDynamicProviderCtxt));
86
86
  // return values.map(v => v.split(":")[0]).includes(fieldValue);
87
87
  return values.map(v => v.value).includes(fieldValue);
88
88
  }
@@ -11,7 +11,7 @@ interface ListOfValuesProviderContext extends ISelectionProviderContext {
11
11
  type: string;
12
12
  }
13
13
 
14
- const DEFAULT_LIMIT = 10;
14
+ const DEFAULT_LIMIT = 100;
15
15
 
16
16
  @SelectionProvider()
17
17
  @Injectable()
@@ -515,7 +515,7 @@ export class CRUDService<T> { // Add two generic value i.e Person,CreatePersonDt
515
515
  // We can assume that the media field entity model is already populated as part of the entity data
516
516
  const mediaFieldEntities = this.getMediaFieldEntities(entity, pathParts);
517
517
  if (!mediaFieldEntities || mediaFieldEntities.length === 0) {
518
- throw new BadRequestException(`Media field path ${mediaFieldPath} is not populated in model ${this.modelName}`);
518
+ return ;//no need to populate data if relation not exists
519
519
  }
520
520
  // Populate the media field entities with the full URL
521
521
  for (const mediaFieldEntity of mediaFieldEntities) {