Skip to content

Commit

Permalink
fix: metadata export and default empty entries (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvlugter authored Mar 30, 2022
1 parent 5421ffa commit 87c5297
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports.replicatedentity = require('./src/replicated-entity');
module.exports.ReplicatedWriteConsistency =
require('./src/akkaserverless').ReplicatedWriteConsistency;
module.exports.Action = require('./src/action');
module.exports.Metadata = require('./src/metadata');
module.exports.Metadata = require('./src/metadata').Metadata;
module.exports.IntegrationTestkit =
require('./src/integration-testkit').IntegrationTestkit;
module.exports.View = require('./src/view');
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/metadata.jsdoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* a string using toString.
*
* @class module:akkaserverless.Metadata
* @param {module:akkaserverless.MetadataEntry[]} entries The list of entries
* @param {module:akkaserverless.MetadataEntry[]} [entries=[]] The list of entries
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/view-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module.exports = class ViewServices {
try {
const anySupport = new AnySupport(service.root),
metadata = new Metadata(
receiveEvent.metada ? receiveEvent.metadata.entries : [],
receiveEvent.metadata ? receiveEvent.metadata.entries : [],
),
payload = anySupport.deserialize(receiveEvent.payload),
existingState = receiveEvent.bySubjectLookupResult
Expand Down

0 comments on commit 87c5297

Please sign in to comment.