소스 검색

fix für params insert

hmt 7 년 전
부모
커밋
65f5507686
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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"]