From 553e0932b28221905a0939cdbd3f8b43dc0698aa Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Wed, 16 Jun 2021 13:16:58 +0100 Subject: [PATCH] Added missing Bookshelf JSDoc import no issue - this helps us with types across the model code --- core/server/models/base/actions.js | 3 +++ core/server/models/base/raw-knex.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/core/server/models/base/actions.js b/core/server/models/base/actions.js index da25e794b6..ef819be974 100644 --- a/core/server/models/base/actions.js +++ b/core/server/models/base/actions.js @@ -2,6 +2,9 @@ const _ = require('lodash'); const errors = require('@tryghost/errors'); const logging = require('@tryghost/logging'); +/** + * @param {import('bookshelf')} Bookshelf + */ module.exports = function (Bookshelf) { Bookshelf.Model = Bookshelf.Model.extend({ /** diff --git a/core/server/models/base/raw-knex.js b/core/server/models/base/raw-knex.js index 88dd288469..7f926d86c3 100644 --- a/core/server/models/base/raw-knex.js +++ b/core/server/models/base/raw-knex.js @@ -5,6 +5,9 @@ const Promise = require('bluebird'); const schema = require('../../data/schema'); +/** + * @param {import('bookshelf')} Bookshelf + */ module.exports = function (Bookshelf) { Bookshelf.Model = Bookshelf.Model.extend({}, { /**