fix: Adding company-name to public-companies endpoint

fix: Adding filter to public-loads endpoint

fix: Adding isVerified field on account_create event
This commit is contained in:
Josepablo Cruz
2023-11-10 18:47:56 -06:00
committed by Josepablo C.
parent 04b85b1b93
commit 460dfc31f1
3 changed files with 4 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ async function getListByType( type , req ){
const filter = { "company_type" : type , "is_hidden" : false };
const select = [
"rfc",
"company_name",
"company_type",
"company_code",
"company_city",

View File

@@ -9,7 +9,7 @@ const populate_list = ['categories'];
const generic = new GenericHandler( Model, null, populate_list );
const getList = async(req, res) => {
const filter = null;//{ status : "Published" };
const filter = { status : "Published" };
const select = [
"categories",
"truck_type",

View File

@@ -10,7 +10,8 @@ async function create_account( email, password ){
let safe_password = toSha256( password + pwd_secret );
const user = new UserModel({
email,
password : safe_password
password : safe_password,
isVerified : false//Allows old API to recover password
});
await user.save();
}