Skip to content

Commit 21576ee

Browse files
committed
Fix #4889
1 parent b833932 commit 21576ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared/services/contentful.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ class Service {
346346
query.query = tags.join(' ');
347347
}
348348
}
349-
if (startDate) query['sys.createdAt[gte]'] = startDate;
350-
if (endDate) query['sys.createdAt[lte]'] = endDate;
349+
if (startDate) query['fields.creationDate[gte]'] = startDate;
350+
if (endDate) query['fields.creationDate[lte]'] = endDate;
351351
if (phrase) query.query = phrase;
352352
if (title) query['fields.title[match]'] = title;
353353
const content = {};

0 commit comments

Comments
 (0)