add isShare option and product updates

This commit is contained in:
2025-05-12 13:26:56 +05:30
parent e7632afad6
commit 0297ba4993
2 changed files with 2 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ export class productFlowservice {
const updateEventData = await EventsDataModel(organization).findOneAndUpdate(
{
modelUuid: eventDatas.modelUuid,
productId: productId,
isArchive: false,
}
, {

View File

@@ -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,