lib/generator/lib/app.rb in shopify-sinatra-app-0.0.6 vs lib/generator/lib/app.rb in shopify-sinatra-app-0.0.7
- old
+ new
@@ -20,10 +20,10 @@
# this endpoint recieves the uninstall webhook
# and cleans up data, add to this endpoint as your app
# stores more data.
post '/uninstall' do
webhook_session do |params|
- shop.destroy
+ current_shop.destroy
end
end
private