Skip to content

Commit

Permalink
Fix nonstandard SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjensen committed Sep 18, 2018
1 parent d5455ab commit 091cce4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/strap/templates/components/promo
Expand Up @@ -36,10 +36,10 @@ banner:
FROM [either]__UI_MERCH_TABLE__[or]merchandising[/either]
WHERE featured = '[control promo_type specials]'
AND (
timed_promotion <> 1 OR (
timed_promotion = 1 AND
start_date < "[scratch now]" AND
finish_date > "[scratch now]" )
timed_promotion <> '1' OR (
timed_promotion = '1' AND
start_date < '[scratch now]' AND
finish_date > '[scratch now]' )
)
LIMIT [control matches 4]
| prefix="loop"]
Expand Down

0 comments on commit 091cce4

Please sign in to comment.