@nina-protocol/nina-db 0.0.39 → 0.0.41

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.
@@ -124,7 +124,7 @@ export default class Release extends Model {
124
124
  return slug;
125
125
  };
126
126
  format = async () => {
127
- const publisher = await this.$relatedQuery('publisher').select('publicKey');
127
+ const publisher = await this.$relatedQuery('publisher');
128
128
  const publishedThroughHub = await this.$relatedQuery('publishedThroughHub');
129
129
  if (publishedThroughHub) {
130
130
  this.publishedThroughHub = publishedThroughHub.publicKey;
@@ -134,7 +134,9 @@ export default class Release extends Model {
134
134
  this.hub.authority = authority.publicKey;
135
135
  delete this.hub.authorityId;
136
136
  }
137
+ await publisher.format();
137
138
  this.publisher = publisher.publicKey;
139
+ this.publisherAccount = publisher;
138
140
  delete this.publisherId;
139
141
  delete this.hubId;
140
142
  delete this.id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nina-protocol/nina-db",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "description": "",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -137,7 +137,7 @@ export default class Release extends Model {
137
137
  }
138
138
 
139
139
  format = async () => {
140
- const publisher = await this.$relatedQuery('publisher').select('publicKey');
140
+ const publisher = await this.$relatedQuery('publisher');
141
141
  const publishedThroughHub = await this.$relatedQuery('publishedThroughHub');
142
142
  if (publishedThroughHub) {
143
143
  this.publishedThroughHub = publishedThroughHub.publicKey;
@@ -147,7 +147,9 @@ export default class Release extends Model {
147
147
  this.hub.authority = authority.publicKey;
148
148
  delete this.hub.authorityId;
149
149
  }
150
+ await publisher.format();
150
151
  this.publisher = publisher.publicKey;
152
+ this.publisherAccount = publisher;
151
153
  delete this.publisherId
152
154
  delete this.hubId
153
155
  delete this.id