Skip to content

Commit

Permalink
Hotfix: Remove seq
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas-C committed Aug 31, 2023
1 parent ea14d99 commit 7c8240c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 1 addition & 3 deletions src/api/embedsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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));
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7c8240c

Please sign in to comment.