Fix duplicate mods in cell data
This commit is contained in:
parent
a78fa4772b
commit
f23cf526e5
@ -162,7 +162,7 @@ pub async fn get_cell_data(
|
|||||||
COUNT(DISTINCT plugins.id) as plugins_count,
|
COUNT(DISTINCT plugins.id) as plugins_count,
|
||||||
COUNT(DISTINCT files.id) as files_count,
|
COUNT(DISTINCT files.id) as files_count,
|
||||||
COUNT(DISTINCT mods.id) as mods_count,
|
COUNT(DISTINCT mods.id) as mods_count,
|
||||||
json_agg(mods.*) as mods
|
json_agg(DISTINCT mods.*) as mods
|
||||||
FROM cells
|
FROM cells
|
||||||
JOIN plugin_cells on cells.id = cell_id
|
JOIN plugin_cells on cells.id = cell_id
|
||||||
JOIN plugins ON plugins.id = plugin_id
|
JOIN plugins ON plugins.id = plugin_id
|
||||||
|
Loading…
Reference in New Issue
Block a user