@nina-protocol/nina-db 0.0.53 → 0.0.55

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.
@@ -90,8 +90,8 @@ export default class Release extends Model {
90
90
  slug,
91
91
  datetime,
92
92
  publisherId,
93
- price: `${releaseAccount.price.toNumber()}`,
94
- paymentMint: releaseAccount.paymentMint.toBase58(),
93
+ price: `${releaseAccount.account.price?.toNumber() || 0}`,
94
+ paymentMint: releaseAccount.account.paymentMint.toBase58(),
95
95
  });
96
96
  await this.processRevenueShares(releaseAccount, release);
97
97
  tweetNewRelease(metadata, publisherId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nina-protocol/nina-db",
3
- "version": "0.0.53",
3
+ "version": "0.0.55",
4
4
  "description": "",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -101,8 +101,8 @@ export default class Release extends Model {
101
101
  slug,
102
102
  datetime,
103
103
  publisherId,
104
- price: `${releaseAccount.price.toNumber()}`,
105
- paymentMint: releaseAccount.paymentMint.toBase58(),
104
+ price: `${releaseAccount.account.price?.toNumber() || 0}`,
105
+ paymentMint: releaseAccount.account.paymentMint.toBase58(),
106
106
  })
107
107
  await this.processRevenueShares(releaseAccount, release);
108
108
  tweetNewRelease(metadata, publisherId);