Skip to content

Commit

Permalink
Merge pull request #478 from mozilla/glb-upload-scenes
Browse files Browse the repository at this point in the history
Exclude scenes with project files from projectless
  • Loading branch information
netpro2k authored Mar 2, 2021
2 parents 6e459fa + 8ff8376 commit 5f21610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ret/scene.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ defmodule Ret.Scene do
Repo.all(
from(s in Scene,
left_join: project in assoc(s, :project),
where: s.account_id == ^account.account_id and is_nil(project),
where: s.account_id == ^account.account_id and is_nil(s.scene_owned_file_id) and is_nil(project),
preload: ^Scene.scene_preloads(),
order_by: [desc: s.updated_at]
)
Expand Down

0 comments on commit 5f21610

Please sign in to comment.