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