@nina-protocol/nina-db 0.0.25 → 0.0.27
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/dist/models/Release.js +2 -0
- package/package.json +1 -1
- package/src/models/Release.js +2 -0
package/dist/models/Release.js
CHANGED
|
@@ -101,6 +101,8 @@ class Release extends Model {
|
|
|
101
101
|
const publishedThroughHub = await this.$relatedQuery('publishedThroughHub');
|
|
102
102
|
if (publishedThroughHub) {
|
|
103
103
|
this.publishedThroughHub = publishedThroughHub.publicKey;
|
|
104
|
+
this.hub = publishedThroughHub;
|
|
105
|
+
delete this.hub.id;
|
|
104
106
|
}
|
|
105
107
|
this.publisher = publisher.publicKey;
|
|
106
108
|
delete this.publisherId;
|
package/package.json
CHANGED
package/src/models/Release.js
CHANGED
|
@@ -110,6 +110,8 @@ export default class Release extends Model {
|
|
|
110
110
|
const publishedThroughHub = await this.$relatedQuery('publishedThroughHub');
|
|
111
111
|
if (publishedThroughHub) {
|
|
112
112
|
this.publishedThroughHub = publishedThroughHub.publicKey;
|
|
113
|
+
this.hub = publishedThroughHub;
|
|
114
|
+
delete this.hub.id;
|
|
113
115
|
}
|
|
114
116
|
this.publisher = publisher.publicKey;
|
|
115
117
|
delete this.publisherId
|