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

9
.env
View File

@@ -3,7 +3,10 @@ MONGO_URI=mongodb://mongo/
MONGO_USER=admin MONGO_USER=admin
MONGO_PASSWORD=dwinzo_v0 MONGO_PASSWORD=dwinzo_v0
MONGO_AUTH_DB=admin MONGO_AUTH_DB=admin
# MONGO_URI=mongodb://192.168.0.110/
# MONGO_USER=mydata
# MONGO_PASSWORD=mongodb@hexr2002
# MONGO_AUTH_DB=admin
API_PORT=4999 API_PORT=4999
SOCKET_PORT=7999 SOCKET_PORT=7999
NODE_ENV=development NODE_ENV=development
@@ -23,4 +26,6 @@ REFRESH_JWT_SECRET="RefreshDwinzoProject"
REDIS_ENV= true REDIS_ENV= true
REDIS_DOCKER =185.100.212.76 REDIS_DOCKER =185.100.212.76
REDIS_PORT=6666 REDIS_PORT=6666
# REDIS_LOCAL =127.0.0.1
# REDIS_PORT=6379

View File

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

View File

@@ -5,7 +5,7 @@ import { existingUser } from "../helpers/v1projecthelperFns.ts";
interface IRecentData { interface IRecentData {
organization: string; organization: string;
userId: string; userId: string;
role: string; // role: string;
} }
interface IProject { interface IProject {
_id: string; _id: string;