ソースを参照

fix fortune test

Damien Solimando 9 年 前
コミット
4389946e98
1 ファイル変更1 行追加0 行削除
  1. 1 0
      frameworks/Groovy/hot/shows/example.show.groovy

+ 1 - 0
frameworks/Groovy/hot/shows/example.show.groovy

@@ -63,6 +63,7 @@ rest.get('/fortunes/mongodb').then {
 		
 		def response = templateHeader
 		fortunes.each {
+			it._id = it._id as Integer
 			response += "<tr><td>${it._id}</td><td>${it.message}</td></tr>"
 		}
 		response += templateTail