Vue Attract: Default sort shots by cut_in_timeline_in_frames

This commit is contained in:
2019-02-12 12:59:01 +01:00
parent 5e73720d91
commit ac8a6284d4

View File

@@ -2,8 +2,9 @@ function thenGetProjectShots(projectId) {
let where = {
project: projectId,
node_type: 'attract_shot'
}
return pillar.api.thenGetNodes(where);
};
let sort = '-properties.used_in_edit,properties.cut_in_timeline_in_frames';
return pillar.api.thenGetNodes(where, {}, sort);
}
export { thenGetProjectShots }