Skip to content

Commit

Permalink
BUGFIX: add missing bracket to query
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoldbeck committed Oct 22, 2018
1 parent 939d368 commit 0ba8ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ prototype(Your.NameSpace:WeeklyLetterRenderer) < prototype(Psmb.Newsletter:MailR
```
prototype(Sfi.Site:DigestMail) < prototype(Psmb.Newsletter:MailRenderer) {
# ElasticSearch used here, but could be a simple FlowQuery as well
@context.nodes = ${Search.query(site).nodeType('Sfi.Site:News').exactMatch('type', 'ourNews').greaterThan('date', Date.format(Date.subtract(Date.now(), subscription.interval), "Y-m-d\TH:i:sP").sortDesc('date').execute()}
@context.nodes = ${Search.query(site).nodeType('Sfi.Site:News').exactMatch('type', 'ourNews').greaterThan('date', Date.format(Date.subtract(Date.now(), subscription.interval), "Y-m-d\TH:i:sP")).sortDesc('date').execute()}
@if.notEmpty = ${q(nodes).count() > 0}
subject = ${Translation.translate('newsletter.digestSubject', null, [], null, 'Sfi.Site')}
body = Neos.Fusion:Collection {
Expand Down

0 comments on commit 0ba8ad8

Please sign in to comment.