diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2109fb99..20de2e38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,11 @@ on: jobs: backend: runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18] + steps: - name: Checkout Code uses: actions/checkout@v4 @@ -59,4 +64,4 @@ jobs: - name: Build Frontend working-directory: frontend - run: npm run build \ No newline at end of file + run: npm run build diff --git a/backend/src/models/Routine.js b/backend/src/models/Routine.js index b9029425..b87b178d 100644 --- a/backend/src/models/Routine.js +++ b/backend/src/models/Routine.js @@ -10,6 +10,7 @@ const routineSchema = mongoose.Schema( name: { type: String, required: true, + trim: true }, description: { type: String, @@ -25,6 +26,7 @@ const routineSchema = mongoose.Schema( day: { type: String, required: true, + trim: true, enum: [ "Monday", "Tuesday", diff --git a/backend/src/models/Task.js b/backend/src/models/Task.js index afcc9bd5..41ad178d 100644 --- a/backend/src/models/Task.js +++ b/backend/src/models/Task.js @@ -10,14 +10,17 @@ const taskSchema = mongoose.Schema( title: { type: String, required: true, + trim: true }, description: { type: String, required: false, + trim: true }, tags: { type: [String], required: false, + trim: true default: [], }, priority: { diff --git a/backend/src/models/User.js b/backend/src/models/User.js index 993693e2..7c92201d 100644 --- a/backend/src/models/User.js +++ b/backend/src/models/User.js @@ -46,4 +46,4 @@ const userSchema = new mongoose.Schema( const User = mongoose.model('User', userSchema); -export default User; \ No newline at end of file +export default User;