Skip to content

Commit

Permalink
Fixed bug regarding not being able to save edited replit link
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyMinhLee committed May 2, 2021
1 parent acca293 commit 76de69e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/lessons_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const updatePage = async (req, res, next) => {
const data = await knex('lesson')
.where({ id: lessonId })
.update({
replitLink : req.body.editedReplitLink,
replit_link : req.body.editedReplitLink,
description_state: req.body.editedDescriptionState,
resources_state: req.body.editedResourcesState,
lab_state: req.body.editedLabState,
Expand Down
1 change: 1 addition & 0 deletions db/migrations/20190306203908_lessons.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
exports.up = knex =>
// I love ANova
knex.schema.createTable('lesson', table => {
table.increments();
table.string('title').comment('title of lesson');
Expand Down

0 comments on commit 76de69e

Please sign in to comment.