Search Api, socket comments erased

This commit is contained in:
2025-06-02 12:55:45 +05:30
parent fc53a859f0
commit 66ccde6110
8 changed files with 40 additions and 40 deletions

View File

@@ -119,12 +119,12 @@ export const DelZone = async (data: IZone): Promise<IResult> => {
if (!LivingProject) return { status: "Project not found" };
if (findZoneId) {
const deleteZone = await zoneModel(organization)
.findOneAndDelete({
.findOneAndUpdate({
zoneId: zoneId,
createdBy: userId,
projectId: projectId,
isArchive: false,
})
},{isArchive:true},{new:true})
.select("-_id -__v");
if (deleteZone) {
const panels = await panelModel(organization).find({