add isShare option and product updates
This commit is contained in:
@@ -26,6 +26,7 @@ export class productFlowservice {
|
||||
const updateEventData = await EventsDataModel(organization).findOneAndUpdate(
|
||||
{
|
||||
modelUuid: eventDatas.modelUuid,
|
||||
productId: productId,
|
||||
isArchive: false,
|
||||
}
|
||||
, {
|
||||
|
||||
@@ -21,7 +21,7 @@ export class user {
|
||||
const hashpassword=await hashGenerate(password)
|
||||
const userCount = await userModel(organization).countDocuments({});
|
||||
role = userCount === 0 ? "Admin" : "User";
|
||||
const isShare = role === "Admin" ? "true" : "false";
|
||||
const isShare = "true";
|
||||
const newuser = await userModel(organization).create({
|
||||
userName: userName,
|
||||
email: caseChange,
|
||||
|
||||
Reference in New Issue
Block a user