@nina-protocol/nina-db 0.0.75 → 0.0.76

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.
@@ -58,10 +58,10 @@ export default class Release extends Model {
58
58
  let metadataAccount = (await metaplex.nfts().findAllByMintList({ mints: [releaseAccount.releaseMint] }, { commitment: 'confirmed' }))[0];
59
59
  let json;
60
60
  try {
61
- json = (await axios.get(metadataAccount.uri)).data;
61
+ json = (await axios.get(metadataAccount.uri).replace('www.', '').replace('arweave.net', 'gateway.irys.xyz')).data;
62
62
  }
63
63
  catch (error) {
64
- json = (await axios.get(metadataAccount.uri.replace('arweave.net', 'ar-io.net'))).data;
64
+ json = (await axios.get(metadataAccount.uri.replace('gateway.irys.xyz', 'arweave.net'))).data;
65
65
  }
66
66
  const slug = await this.generateSlug(json);
67
67
  let publisher = await Account.findOrCreate(releaseAccount.authority.toBase58());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nina-protocol/nina-db",
3
- "version": "0.0.75",
3
+ "version": "0.0.76",
4
4
  "description": "",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -65,9 +65,9 @@ export default class Release extends Model {
65
65
  let metadataAccount = (await metaplex.nfts().findAllByMintList({mints: [releaseAccount.releaseMint]}, { commitment: 'confirmed' }))[0];
66
66
  let json
67
67
  try {
68
- json = (await axios.get(metadataAccount.uri)).data
68
+ json = (await axios.get(metadataAccount.uri).replace('www.','').replace('arweave.net', 'gateway.irys.xyz')).data
69
69
  } catch (error) {
70
- json = (await axios.get(metadataAccount.uri.replace('arweave.net', 'ar-io.net'))).data
70
+ json = (await axios.get(metadataAccount.uri.replace('gateway.irys.xyz', 'arweave.net'))).data
71
71
  }
72
72
 
73
73
  const slug = await this.generateSlug(json);