不要怂,就是干,撸起袖子干!

Commit baba4bc5 by Alan Bueno Committed by Erik Seliger

docs: comma fix on 'several rows update' sample code (#9114)

1 parent bee03c10
Showing with 1 additions and 1 deletions
......@@ -161,7 +161,7 @@ Task.bulkCreate([
{subject: 'programming', status: 'finished'}
]).then(() => {
return Task.update(
{ status: 'inactive' }, /* set attributes' value */,
{ status: 'inactive' }, /* set attributes' value */
{ where: { subject: 'programming' }} /* where criteria */
);
}).spread((affectedCount, affectedRows) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!