diff --git a/model/document.js b/model/document.js index 9a48a9ca..ad42aa8b 100644 --- a/model/document.js +++ b/model/document.js @@ -116,7 +116,7 @@ module.exports = class BaseDocument extends Observable { this.owner = frappe.session.user; this.creation = now; } - this.modifieldBy = frappe.session.user; + this.modifiedBy = frappe.session.user; this.modified = now; } } diff --git a/model/index.js b/model/index.js index 8b03d100..cfbd05d6 100644 --- a/model/index.js +++ b/model/index.js @@ -9,7 +9,7 @@ module.exports = { fieldname: 'owner', fieldtype: 'Data', required: 1 }, { - fieldname: 'modifieldBy', fieldtype: 'Data', required: 1 + fieldname: 'modifiedBy', fieldtype: 'Data', required: 1 }, { fieldname: 'creation', fieldtype: 'Datetime', required: 1