Damien Solimando преди 9 години
родител
ревизия
f0774a1606
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      frameworks/Groovy/hot/shows/example.show.groovy

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

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