tessting branch-1
This commit is contained in:
@@ -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}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user