ENV updated

This commit is contained in:
2025-06-23 17:51:48 +05:30
parent 82d8e9b0ff
commit 97eb5e6715
3 changed files with 12 additions and 7 deletions

View File

@@ -12,13 +12,13 @@ export const recentDataController = async (
): Promise<void> => {
try {
const { userId, organization, role } = req.user || {};
if (!userId || !organization || !role) {
if (!userId || !organization) {
res.status(400).json({
message: "All fields are required",
});
return;
}
const result = await RecentlyAdded({ userId, organization, role });
const result = await RecentlyAdded({ userId, organization });
switch (result.status) {
case "User not found":
@@ -55,7 +55,7 @@ export const searchProjectController = async (
): Promise<void> => {
try {
const { userId, organization, role } = req.user || {};
if (!userId || !organization || !role) {
if (!userId || !organization) {
res.status(400).json({
message: "All fields are required",
});
@@ -104,7 +104,7 @@ export const searchTrashProjectController = async (
): Promise<void> => {
try {
const { userId, organization, role } = req.user || {};
if (!userId || !organization || !role) {
if (!userId || !organization) {
res.status(400).json({
message: "All fields are required",
});