From 8e49769e6d145c48d30909e693e79e4d6d545a75 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Mon, 22 Aug 2016 22:49:58 -0400 Subject: [PATCH] promises --- node.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.md b/node.md index 1aa3663..0040e6c 100644 --- a/node.md +++ b/node.md @@ -387,7 +387,7 @@ We can now require our run model elsewhere var Runs = require('./models/runs.js'); ``` -and create a run: +and create a run (all sequelize db query functions return a promise. This is an object that has a `then()` function that takes two params, a success callback for when the query succeeds and a fail callback for when it doesn't. Only the success callback is shown below): ```javascript Runs.create({