Skip to content

Commit

Permalink
Merge pull request #32 from mozilla-services/remove-db-shortcut
Browse files Browse the repository at this point in the history
Do not use db as shortcut for storage
  • Loading branch information
leplatrem committed May 12, 2015
2 parents 0cf2a44 + fb6f42e commit 82d8e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kinto/views/flush.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ def flush_post(request):
if not asbool(flush_enabled):
raise httpexceptions.HTTPMethodNotAllowed()

request.db.flush()
request.registry.storage.flush()
return httpexceptions.HTTPAccepted()

0 comments on commit 82d8e18

Please sign in to comment.