Draft: Revert "feat: Private Groups + Load-Templates"
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user