tessting branch-1

This commit is contained in:
2025-03-31 19:49:07 +05:30
parent b117c8705c
commit 616851b837
9 changed files with 406 additions and 106 deletions

View File

@@ -4,8 +4,8 @@ import environmentModel from "../../../shared/model/environments/environments-Mo
export const setEnvironment = async (data: any,) => {
const { userId,roofVisibility,wallVisibility,shadowVisibility, organization } = data
try {
const { userId,roofVisibility,wallVisibility,shadowVisibility, organization } = data
const findvalue = await environmentModel(organization).findOne({ userId: userId })
if (findvalue) {
@@ -27,7 +27,7 @@ export const setEnvironment = async (data: any,) => {
// Send response with the created document
} catch (error) {
console.error('Error creating evironments:', error);
return { success: false, message: 'Error creating or updating evironments', error }
return { success: false, message: 'Error creating or updating evironments', error ,organization:organization}
}
}