Search Api, socket comments erased
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user