0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

bumping to knex 0.5 and bookshelf 0.6.1

This commit is contained in:
Tim Griesser 2013-11-25 14:20:01 -05:00 committed by Fabian Becker
parent 0169f47752
commit 726014f59a
4 changed files with 10 additions and 6 deletions

View file

@ -24,9 +24,13 @@ var config = require('./server/config'),
init;
// If we're in development mode, require "when/console/monitor"
// for help in seeing swallowed promise errors.
// for help in seeing swallowed promise errors, and log any
// stderr messages from bluebird promises.
if (process.env.NODE_ENV === 'development') {
require('when/monitor/console');
process.stderr.on('data', function (msg) {
console.log(msg);
});
}
// Sets up the express server instance.

View file

@ -280,7 +280,7 @@ Post = ghostBookshelf.Model.extend({
qb.where(opts.where);
}
return qb.count(_.result(collection, 'idAttribute')).then(function (resp) {
return qb.count(_.result(collection, 'idAttribute') + ' as aggregate').then(function (resp) {
var totalPosts = parseInt(resp[0].aggregate, 10),
data = {
posts: collection.toJSON(),

View file

@ -209,7 +209,7 @@ describe("Import", function () {
done();
});
}).then(null, done);
});
it("doesn't import invalid settings data from 001", function (done) {
@ -258,7 +258,7 @@ describe("Import", function () {
done();
});
}).then(null, done);
});
});

View file

@ -33,14 +33,14 @@
"engineStrict": true,
"dependencies": {
"bcryptjs": "0.7.10",
"bookshelf": "0.5.7",
"bookshelf": "0.6.1",
"colors": "0.6.2",
"connect-slashes": "0.0.11",
"downsize": "0.0.3",
"express": "3.4.4",
"express-hbs": "0.5.1",
"fs-extra": "0.8.1",
"knex": "0.4.13",
"knex": "0.5.0",
"moment": "2.4.0",
"node-polyglot": "0.3.0",
"node-uuid": "1.4.1",