Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
NameCoach Inc.
sequelize-temporal
Commits
415c5da5
Commit
415c5da5
authored
5 years ago
by
Alexey Batrachenko
Browse files
Options
Download
Email Patches
Plain Diff
Return modelHistory instead of model
parent
19212d1e
Pipeline
#3698
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
index.js
+1
-1
index.js
with
1 addition
and
1 deletion
+1
-1
index.js
+
1
-
1
View file @
415c5da5
...
...
@@ -107,7 +107,7 @@ var Temporal = function(model, sequelize, temporalOptions){
modelHistory
.
addHook
(
'
beforeUpdate
'
,
readOnlyHook
);
modelHistory
.
addHook
(
'
beforeDestroy
'
,
readOnlyHook
);
return
model
;
return
model
History
;
};
module
.
exports
=
Temporal
;
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets