Fix skyrim worldspace filter in mod cells query
This commit is contained in:
parent
82996f237f
commit
51175933d6
@ -363,11 +363,11 @@ pub async fn batched_get_with_cells(
|
|||||||
ModWithCells,
|
ModWithCells,
|
||||||
"SELECT
|
"SELECT
|
||||||
mods.*,
|
mods.*,
|
||||||
COALESCE(json_agg(DISTINCT jsonb_build_object('x', cells.x, 'y', cells.y)) FILTER (WHERE cells.x IS NOT NULL AND cells.y IS NOT NULL), '[]') AS cells
|
COALESCE(json_agg(DISTINCT jsonb_build_object('x', cells.x, 'y', cells.y)) FILTER (WHERE cells.x IS NOT NULL AND cells.y IS NOT NULL AND cells.master = $3 AND cells.world_id = $4), '[]') AS cells
|
||||||
FROM mods
|
FROM mods
|
||||||
LEFT OUTER JOIN plugin_cells ON plugin_cells.mod_id = mods.id
|
LEFT OUTER JOIN plugin_cells ON plugin_cells.mod_id = mods.id
|
||||||
LEFT OUTER JOIN cells ON cells.id = plugin_cells.cell_id
|
LEFT OUTER JOIN cells ON cells.id = plugin_cells.cell_id
|
||||||
WHERE mods.id > $2 AND cells.master = $3 AND cells.world_id = $4
|
WHERE mods.id > $2
|
||||||
GROUP BY mods.id
|
GROUP BY mods.id
|
||||||
ORDER BY mods.id ASC
|
ORDER BY mods.id ASC
|
||||||
LIMIT $1",
|
LIMIT $1",
|
||||||
|
Loading…
Reference in New Issue
Block a user