Browse Source

fix für params insert

hmt 7 years ago
parent
commit
65f5507686
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sv.rb

+ 1 - 1
sv.rb

@@ -117,7 +117,7 @@ class SV < Sinatra::Application
 
   post '/info' do
     protected!
-    if DB[:infos].insert(params)
+    if DB[:infos].insert(:text => params[:text], :timestamp => params[:timestamp])
       session[:flash] = [1, "Die Info wurde gespeichert"]
     else
       session[:flash] = [0, "Es gab einen Fehler beim Speichern der Info"]