Skip to content

Commit

Permalink
added kk's changes as well
Browse files Browse the repository at this point in the history
  • Loading branch information
hizaidii committed May 19, 2024
1 parent 9666b0b commit ba7e280
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/appController.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ module.exports.postNewTask = async (req, res, next) => {
}
let swimlaneID = board.swimlanes.id(status);
// board.swimlanes.push({ title });
<<<<<<< HEAD
swimlaneID.tasks.push({ title, description, creationDate: Date.now(), priority, dueDate});
=======
swimlaneID.tasks.push({ title, description, creationDate: Date.now(), priority, dueDate });
>>>>>>> 3e29aac (added kk's changes as well)
user.totalTasks = Number(user.totalTasks) || 0;
user.totalTasks += 1;

Expand Down
5 changes: 5 additions & 0 deletions models/users.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const e = require("express");
const mongoose = require("mongoose");
const { Schema } = mongoose;

Expand All @@ -17,7 +18,11 @@ const taskSchema = new Schema({
},
priority: {
type: String,
<<<<<<< HEAD
enum: ["High", "Medium", "Low"],
=======
enum: ["Low", "Medium", "High"],
>>>>>>> 3e29aac (added kk's changes as well)
},
dueDate: {
type: Date,
Expand Down

0 comments on commit ba7e280

Please sign in to comment.