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