Skip to content

Commit

Permalink
chore: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KavithaSiva committed Jan 15, 2025
1 parent 285188f commit 70e7df9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/odata-common/src/selectable/edm-type-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export class EdmTypeField<
implements EntityIdentifiable<EntityT, DeSerializersT>
{
readonly _entity: EntityT;
readonly precision?: number;

/**
* Creates an instance of EdmTypeField.
Expand All @@ -74,7 +73,6 @@ export class EdmTypeField<
fieldOptions?: FieldOptions<NullableT, SelectableT, PrecisionT>
) {
super(fieldName, getEntityConstructor(_fieldOf), fieldOptions);
this.precision = fieldOptions?.precision;
}

/**
Expand Down
1 change: 1 addition & 0 deletions packages/odata-v4/src/de-serializers/converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export function serializeToDateTimeOffset(
value: moment.Moment,
precision?: number
): string {
console.log('Precision being logged in the serialiser', precision);

Check failure on line 49 in packages/odata-v4/src/de-serializers/converters.ts

View workflow job for this annotation

GitHub Actions / checks

Unexpected console statement

Check failure on line 49 in packages/odata-v4/src/de-serializers/converters.ts

View workflow job for this annotation

GitHub Actions / linting

Unexpected console statement
// If precision is defined, create a format with decimal places
if (precision !== undefined && precision !== null) {
const precisionFormat = new Array(precision).fill('S').join('');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function createTestEntity() {
.keyPropertyGuid(keyPropGuid)
.keyPropertyString(keyPropString)
.keyDateProperty(keyPropDate)
.dateTimeOffSetProperty(moment())
.int32Property(int32Prop)
.build();
}
Expand Down

0 comments on commit 70e7df9

Please sign in to comment.