Skip to content

fix: add trim option to mongoose string fields to trim whitespace#252

Open
n1o5 wants to merge 13 commits into
aryandas2911:mainfrom
n1o5:fix/add-trim-to-model-fields
Open

fix: add trim option to mongoose string fields to trim whitespace#252
n1o5 wants to merge 13 commits into
aryandas2911:mainfrom
n1o5:fix/add-trim-to-model-fields

Conversation

@n1o5
Copy link
Copy Markdown

@n1o5 n1o5 commented May 15, 2026

📌 Description

The trim: true option was added to the string fields of Task, User, and Routine models. This allows users to save data while enabling automatic trimming of whitespace.

🔗 Related Issue

Closes #53

🛠 Changes Made

Added trim: true to the following:

  1. Title, description and tags in Task
  2. Name and email in User
  3. Name and day in Routine

✅ Checklist

  • Code runs locally
  • Followed project structure
  • No console errors
  • Properly tested changes
  • Linked the issue

@aryandas2911
Copy link
Copy Markdown
Owner

@n1o5 pls fix the linting error for backend and frontend

@n1o5
Copy link
Copy Markdown
Author

n1o5 commented May 17, 2026

it was an env mismatch wrt node version; have updated it now
edit: @aryandas2911 can you look into this now?

@n1o5 n1o5 requested a review from aryandas2911 May 26, 2026 03:20
@aryandas2911
Copy link
Copy Markdown
Owner

@n1o5 remove the node 20 version from yml dont touch it and lint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add trim validation to Mongoose Models

2 participants