task update

This commit is contained in:
Sibunnayak 2024-08-30 16:38:45 +05:30
parent 924c0cbb4f
commit 55ecd55f34
7 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -11,7 +11,7 @@ export const addInventory = async (req, res) => {
const { products, addedFor, addedForId } = req.body; const { products, addedFor, addedForId } = req.body;
const userId = req.user._id; const userId = req.user._id;
const userType = req.userType; const userType = req.userType;
console.log("req.user", req.user); // console.log("req.user", req.user);
const currentYear = new Date().getFullYear().toString().slice(-2); const currentYear = new Date().getFullYear().toString().slice(-2);
const randomChars = crypto.randomBytes(4).toString("hex").toUpperCase(); const randomChars = crypto.randomBytes(4).toString("hex").toUpperCase();
const uniqueId = `${currentYear}-${randomChars}`; const uniqueId = `${currentYear}-${randomChars}`;