Commit 415c5da5 authored by Alexey Batrachenko's avatar Alexey Batrachenko :eye:
Browse files

Return modelHistory instead of model

parent 19212d1e
Pipeline #3698 canceled with stages
Showing with 1 addition and 1 deletion
+1 -1
......@@ -107,7 +107,7 @@ var Temporal = function(model, sequelize, temporalOptions){
modelHistory.addHook('beforeUpdate', readOnlyHook);
modelHistory.addHook('beforeDestroy', readOnlyHook);
return model;
return modelHistory;
};
module.exports = Temporal;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment