summaryrefslogtreecommitdiff
path: root/bucky/db/bookshelf.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-15 10:43:52 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-15 10:43:52 +0100
commita239f46aaf924031ea53a95130215a2dd3f4dbd6 (patch)
treecc8bcfa9edc0da11f0f756c16d43def5d32eceae /bucky/db/bookshelf.js
parent8c0196b973d936a8659bb27d5f189410bc5f8ea6 (diff)
blobbyblob
Diffstat (limited to 'bucky/db/bookshelf.js')
-rw-r--r--bucky/db/bookshelf.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/bucky/db/bookshelf.js b/bucky/db/bookshelf.js
index 32f4aba..b631545 100644
--- a/bucky/db/bookshelf.js
+++ b/bucky/db/bookshelf.js
@@ -6,16 +6,6 @@ var knex = require('knex')({
password : process.env.DB_PASS,
database : process.env.DB_NAME,
charset : 'utf8',
- typecast : function (field, next) {
- console.log(field.type)
- if (field.type == 'BLOB') {
- return field.string()
- }
- if (field.type == 'TINYBLOB') {
- return field.string()
- }
- return next()
- }
}
})