small change updated
This commit is contained in:
@@ -80,7 +80,6 @@ export const setAssetModel = async (
|
||||
userId: userId,
|
||||
isArchive: false,
|
||||
});
|
||||
console.log("findvalue: ", findvalue);
|
||||
if (findvalue) {
|
||||
const updatevalue = await assetModel(organization).findOneAndUpdate(
|
||||
{
|
||||
|
||||
@@ -65,16 +65,16 @@ export const SetZone = async (data: ISetZone): Promise<IResult> => {
|
||||
});
|
||||
if (findZoneId) {
|
||||
const updateZone = await zoneModel(organization)
|
||||
.findOneAndUpdate(
|
||||
{ zoneUuid: zoneUuid, projectId: projectId, isArchive: false },
|
||||
{
|
||||
points: points,
|
||||
viewPortposition: viewPortposition,
|
||||
viewPortCenter: viewPortCenter,
|
||||
},
|
||||
{ new: true }
|
||||
)
|
||||
.select("-_id -__v");
|
||||
.findOneAndUpdate(
|
||||
{ zoneUuid: zoneUuid, projectId: projectId, isArchive: false },
|
||||
{
|
||||
points: points,
|
||||
viewPortposition: viewPortposition,
|
||||
viewPortCenter: viewPortCenter,
|
||||
},
|
||||
{ new: true }
|
||||
)
|
||||
.select("-_id -__v");
|
||||
return { status: "zone updated", data: updateZone };
|
||||
} else {
|
||||
const zoneCreate = await zoneModel(organization).create({
|
||||
|
||||
Reference in New Issue
Block a user