Skip to content
Snippets Groups Projects
Commit b6e198f9 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

bugfix get models

parent 5cf1263e
No related branches found
No related tags found
No related merge requests found
......@@ -67,11 +67,11 @@ public class ModelsApi {
if(own != null && own)
{
modelRepository.findByCreatedByOrderByCreatedAt(user);
models = modelRepository.findByCreatedByOrderByCreatedAt(user);
}
else
{
modelRepository.findByValidOrCreatedByOrderByCreatedAt(true, user);
models = modelRepository.findByValidOrCreatedByOrderByCreatedAt(true, user);
}
if(valid != null && models != null)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment