ENV updated
This commit is contained in:
9
.env
9
.env
@@ -3,7 +3,10 @@ MONGO_URI=mongodb://mongo/
|
||||
MONGO_USER=admin
|
||||
MONGO_PASSWORD=dwinzo_v0
|
||||
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
|
||||
SOCKET_PORT=7999
|
||||
NODE_ENV=development
|
||||
@@ -23,4 +26,6 @@ REFRESH_JWT_SECRET="RefreshDwinzoProject"
|
||||
|
||||
REDIS_ENV= true
|
||||
REDIS_DOCKER =185.100.212.76
|
||||
REDIS_PORT=6666
|
||||
REDIS_PORT=6666
|
||||
# REDIS_LOCAL =127.0.0.1
|
||||
# REDIS_PORT=6379
|
||||
@@ -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",
|
||||
});
|
||||
|
||||
@@ -5,7 +5,7 @@ import { existingUser } from "../helpers/v1projecthelperFns.ts";
|
||||
interface IRecentData {
|
||||
organization: string;
|
||||
userId: string;
|
||||
role: string;
|
||||
// role: string;
|
||||
}
|
||||
interface IProject {
|
||||
_id: string;
|
||||
|
||||
Reference in New Issue
Block a user