Skip to content

Commit

Permalink
Merge pull request #223 from telefonicaid/bug/fixTypoInMetadataName
Browse files Browse the repository at this point in the history
FIX Typo in metadata name
  • Loading branch information
XavierVal committed Dec 23, 2015
2 parents 33f599d + 5113d08 commit 0d5bad9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- FIX Typo dealing with attributes with metadata.
4 changes: 2 additions & 2 deletions lib/plugins/pluginUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ function createProcessAttribute(fn, attributeType) {
attribute.value = fn(attribute.value);
}

if (attribute.metadata) {
attribute.metadata = attribute.metadata.map(createProcessAttribute(fn, attributeType));
if (attribute.metadatas) {
attribute.metadatas = attribute.metadatas.map(createProcessAttribute(fn, attributeType));
}

return attribute;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/compress-timestamp-plugin_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ describe('Timestamp compression plugin', function() {
name: 'state',
type: 'Boolean',
value: 'true',
metadata: [
metadatas: [
{
name: 'timeInstant',
type: 'timestamp',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"name": "state",
"type": "Boolean",
"value": "true",
"metadata": [
"metadatas": [
{
"name": "timeInstant",
"type": "timestamp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"name": "state",
"type": "Boolean",
"value": "",
"metadata": [
"metadatas": [
{
"name": "timeInstant",
"type": "timestamp",
Expand Down

0 comments on commit 0d5bad9

Please sign in to comment.