Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 2bfa312f
authored
Sep 09, 2015
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the last places referring to instance.__options
1 parent
78c3f91f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
lib/instance-validator.js
lib/query-interface.js
lib/instance-validator.js
View file @
2bfa312
...
@@ -137,7 +137,7 @@ InstanceValidator.prototype._customValidators = function() {
...
@@ -137,7 +137,7 @@ InstanceValidator.prototype._customValidators = function() {
var
validators
=
[];
var
validators
=
[];
var
self
=
this
;
var
self
=
this
;
Utils
.
_
.
each
(
this
.
modelInstance
.
__o
ptions
.
validate
,
function
(
validator
,
Utils
.
_
.
each
(
this
.
modelInstance
.
$modelO
ptions
.
validate
,
function
(
validator
,
validatorType
)
{
validatorType
)
{
var
valprom
=
self
.
_invokeCustomValidator
(
validator
,
validatorType
)
var
valprom
=
self
.
_invokeCustomValidator
(
validator
,
validatorType
)
...
...
lib/query-interface.js
View file @
2bfa312
...
@@ -579,7 +579,7 @@ QueryInterface.prototype.bulkInsert = function(tableName, records, options, attr
...
@@ -579,7 +579,7 @@ QueryInterface.prototype.bulkInsert = function(tableName, records, options, attr
QueryInterface
.
prototype
.
update
=
function
(
instance
,
tableName
,
values
,
identifier
,
options
)
{
QueryInterface
.
prototype
.
update
=
function
(
instance
,
tableName
,
values
,
identifier
,
options
)
{
options
=
options
||
{};
options
=
options
||
{};
options
.
hasTrigger
=
!!
(
instance
&&
instance
.
__options
&&
instance
.
__o
ptions
.
hasTrigger
);
options
.
hasTrigger
=
!!
(
instance
&&
instance
.
$modelOptions
&&
instance
.
$modelO
ptions
.
hasTrigger
);
var
self
=
this
var
self
=
this
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment