clear the testing commits

This commit is contained in:
2025-06-03 14:54:00 +05:30
parent f9083175da
commit 118f65d688
44 changed files with 479 additions and 852 deletions

View File

@@ -72,8 +72,8 @@ export const DeleteZoneController = async (
): Promise<void> => {
try {
const { organization, userId } = req.user || {};
const { zoneId, projectId } = req.body;
if (!organization || !userId || !zoneId || !projectId) {
const { zoneUuid, projectId } = req.body;
if (!organization || !userId || !zoneUuid || !projectId) {
res.status(400).json({
message: "All fields are required",
});
@@ -81,7 +81,7 @@ export const DeleteZoneController = async (
}
const result = await DelZone({
organization,
zoneId,
zoneUuid,
projectId,
userId,
});
@@ -226,8 +226,8 @@ export const ZoneDataController = async (
): Promise<void> => {
try {
const { organization, userId } = req.user || {};
const { projectId, zoneId } = req.params;
if (!organization || !userId || !projectId || !zoneId) {
const { projectId, zoneUuid } = req.params;
if (!organization || !userId || !projectId || !zoneUuid) {
res.status(400).json({
message: "All fields are required",
});
@@ -237,7 +237,7 @@ export const ZoneDataController = async (
organization,
projectId,
userId,
zoneId,
zoneUuid,
});
switch (result.status) {
@@ -277,8 +277,8 @@ export const SingleZonePanelController = async (
): Promise<void> => {
try {
const { organization, userId } = req.user || {};
const { projectId, zoneId } = req.params;
if (!organization || !userId || !projectId || !zoneId) {
const { projectId, zoneUuid } = req.params;
if (!organization || !userId || !projectId || !zoneUuid) {
res.status(400).json({
message: "All fields are required",
});
@@ -288,7 +288,7 @@ export const SingleZonePanelController = async (
organization,
projectId,
userId,
zoneId,
zoneUuid,
});
switch (result.status) {