Skip to content

Commit

Permalink
checking bug on assigning cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald-pro committed Jan 29, 2024
1 parent eec559a commit 16fc685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions models/case_assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ const caseAssign = sequelize.sequelize.define(
autoIncrement: true
},
client_id: Sequelize.INTEGER,
reason_assign: Sequelize.TEXT,
other_reason: Sequelize.TEXT,
reason_assign: {
type: Sequelize.TEXT,
allowNull: true
},
provider_id: Sequelize.INTEGER,
relationship: Sequelize.TEXT,
start_date: Sequelize.DATEONLY,
Expand Down
2 changes: 1 addition & 1 deletion routes/processes/case.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ router.post("/assign", async (req, res) => {
let relationship = req.body.relationship;
let start_date = req.body.start_date;
let end_date = req.body.end_date;
let today = moment(new Date().toDateString()).format("YYYY-MM-DD");
let today = moment(new Date().toDateString()).tz("Africa/Nairobi").format("YYYY-MM-DD H:M:S");

let check_client = await Client.findOne({
where: {
Expand Down

0 comments on commit 16fc685

Please sign in to comment.