feat: cache marka api responses
This commit is contained in:
@@ -26,7 +26,7 @@ function generateJsonLd(resource: GenericResource): string {
|
||||
if (resource.content?.datePublished) {
|
||||
try {
|
||||
baseSchema.datePublished = formatDate(
|
||||
new Date(resource.content.datePublished),
|
||||
resource.content.datePublished,
|
||||
);
|
||||
} catch (_) {
|
||||
// Ignore invalid date
|
||||
|
||||
Reference in New Issue
Block a user