Skip to content

Commit

Permalink
Fixed issue on model insert calls
Browse files Browse the repository at this point in the history
Fixed cast issue (int -> long) that could potentially cause issues
  • Loading branch information
Pere Villega committed May 12, 2012
1 parent 03ffa10 commit 9c3bb8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/Demo.scala
Expand Up @@ -145,7 +145,7 @@ object Demo {
'codeurl -> demo.codeurl,
'demourl -> demo.demourl,
'description -> demo.description
).as(int("id").single)
).as(long("id").single)

//add tags to the demo
Tag.addToDemo(demo.tags, id)
Expand Down
2 changes: 1 addition & 1 deletion app/models/Tag.scala
Expand Up @@ -239,7 +239,7 @@ object Tag {
"""
).on(
'name -> tag.name
).as(int("id").single)
).as(long("id").single)

//store object in cache for later retrieval
val newTag = tag.copy(id = Id(id))
Expand Down
2 changes: 1 addition & 1 deletion app/models/Version.scala
Expand Up @@ -94,7 +94,7 @@ object Version {
).on(
'name -> version.name,
'parent -> version.parent
).as(int("id").single)
).as(long("id").single)

//remove all version cache
//TODO: use standard Cache method when added
Expand Down

0 comments on commit 9c3bb8c

Please sign in to comment.