Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: metadata export and default empty entries #272

Merged
merged 1 commit into from
Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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