From 5dadac51b65c714e2235f28c000a646716e2a63a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 12 Dec 2017 05:59:14 +0100 Subject: also make mailboxes --- bucky/db/index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'bucky/db/index.js') diff --git a/bucky/db/index.js b/bucky/db/index.js index 9e01e9b..c2cf947 100644 --- a/bucky/db/index.js +++ b/bucky/db/index.js @@ -192,6 +192,7 @@ db.getMailboxCounts = function(boxes){ return knex.column('mbox').count('* as count').select().from('messages').where('mbox', 'in', boxes).groupBy('mbox') } db.createMailbox = function(data){ + return new db.Mailbox(data).save() } /* MESSAGES */ -- cgit v1.2.3-70-g09d2