Skip to content

Commit

Permalink
Fix leancloud counter bug (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
littleylv authored and stevenjoezhang committed Aug 15, 2019
1 parent 13a63d0 commit 3c09409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/_third-party/analytics/lean-analytics.swig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
var url = visitors.getAttribute('id').trim();
var title = visitors.getAttribute('data-flag-title').trim();

Counter('get', `/classes/Counter?${JSON.stringify({ where: url })}`)
Counter('get', `/classes/Counter?where=${JSON.stringify({ url })}`)
.then(response => response.json())
.then(({ results }) => {
if (results.length > 0) {
Expand Down

0 comments on commit 3c09409

Please sign in to comment.