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:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user