|
@@ -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"]
|