node.js-_microservices icon indicating copy to clipboard operation
node.js-_microservices copied to clipboard

updates in validators/index.js

Open Shimork04 opened this issue 9 months ago • 1 comments

  1. Missing import of mongoose, it was used but never imported.
const mongoose = require('mongoose');
  1. importing moment,
import moment from 'moment';

and changing the getWeekofYear(), getMonthofYear() via moment().week() and moment().month() respectively. This makes code more optimized.

Shimork04 avatar Apr 25 '24 21:04 Shimork04

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

codesandbox[bot] avatar Apr 25 '24 21:04 codesandbox[bot]