Note that the interface for the custom JS code inside a report template has changed. It now offers promise-based interface and exposes knex.
11 lines
No EOL
333 B
JavaScript
11 lines
No EOL
333 B
JavaScript
'use strict';
|
|
|
|
const knex = require('../lib/knex');
|
|
const dtHelpers = require('../lib/dt-helpers');
|
|
const interoperableErrors = require('../shared/interoperable-errors');
|
|
const fieldsLegacy = require('../lib/models/fields');
|
|
const bluebird = require('bluebird');
|
|
|
|
module.exports = {
|
|
list: bluebird.promisify(fieldsLegacy.list)
|
|
}; |