Draft: Revert "feat: Private Groups + Load-Templates"

This commit is contained in:
Josepablo Cruz Baas
2026-03-31 22:06:21 +00:00
parent 14a8a22880
commit f79329e714
18 changed files with 55 additions and 672 deletions

View File

@@ -46,14 +46,7 @@ function getAndFilterList( query ){
}
async function getListByType( type , req ){
const filter = {
company_type: type,
is_hidden: false,
$or : [
{ privacy : false },
{ privacy : { $exists : false } }
]
};
const filter = { "company_type" : type , "is_hidden" : false };
const select = [
"rfc",
"company_name",
@@ -65,8 +58,7 @@ async function getListByType( type , req ){
"membership",
"categories",
"truck_type",
"company_description",
"privacy"
"company_description"
];
const { elements } = getPagination( req.query );
const page = 0;// No pagination allowed to this endpoint