diff --git a/package.json b/package.json index a0fdb388..c5c8eb39 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@graphql-codegen/typescript-resolvers": "^2.7.6", "@graphql-eslint/eslint-plugin": "^3.12.0", "@ndla/types-backend": "^0.2.16", - "@ndla/types-embed": "^2.0.7", + "@ndla/types-embed": "^3.0.0", "@ndla/types-taxonomy": "^1.0.18", "@types/bunyan": "^1.8.5", "@types/compression": "^1.7.2", diff --git a/src/api/embedsApi.ts b/src/api/embedsApi.ts index 04959087..f3043ecb 100644 --- a/src/api/embedsApi.ts +++ b/src/api/embedsApi.ts @@ -412,7 +412,6 @@ export const transformEmbed = async ( embedData: embedData, status: 'success', data: meta, - seq: index, } as EmbedMetaData; embed.embed.attr('data-json', JSON.stringify(embedMeta)); @@ -425,8 +424,7 @@ export const transformEmbed = async ( resource: embedData.resource, embedData: embedData, status: 'error', - seq: index, - message: `Failed to fetch data for embed of type ${embedData.resource} with seq ${index}`, + message: `Failed to fetch data for embed of type ${embedData.resource} with index ${index}`, } as EmbedMetaData; embed.embed.attr('data-json', JSON.stringify(embedMeta)); diff --git a/yarn.lock b/yarn.lock index e153c7f5..4fd3e7b1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1490,10 +1490,10 @@ resolved "https://registry.yarnpkg.com/@ndla/types-backend/-/types-backend-0.2.16.tgz#d59191fa4b73c69013652f05729fd0ab8cf92018" integrity sha512-E8nCfDfmhc9C4SWXQ4ruRQkDfYaj1jtVlxMt0fOpqZM9P3FoEaED1SFe/xwXZGhvySCNe1ksWNJTL8xrarj1Vw== -"@ndla/types-embed@^2.0.7": - version "2.0.7" - resolved "https://registry.yarnpkg.com/@ndla/types-embed/-/types-embed-2.0.7.tgz#552728fb23e03943c47689209513b88fbfdf833a" - integrity sha512-u48azjdULP6fqHbVqrhPSoIJXUU+fstcuOmnoVMWVcl0/R9CR7agpRfpqPb+F2scDx8obsKy8l16v4bNwZCUDg== +"@ndla/types-embed@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@ndla/types-embed/-/types-embed-3.0.0.tgz#273d70a2c81f8457af9f4aedd1bb97ae63c6548a" + integrity sha512-MJsCCJPtyosgFF2aptJ+gTcbMsE1GljsDc8stheO8zZo4E6w1EyvXUhEHHR/HgUx7ojMToCRu2CbCIEfCtdGOQ== "@ndla/types-taxonomy@^1.0.18": version "1.0.18"