From 286e64430ee3f8ae2ae14d662cb7deab003f0899 Mon Sep 17 00:00:00 2001 From: Robert Preus-MacLaren Date: Wed, 22 Nov 2017 16:26:53 +0200 Subject: [PATCH] Fix issue related to mimicking sequelize.import We need to return the object used to store the datatypes, otherwise sequelizeInstance.import is broken. --- src/data-types.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/data-types.js b/src/data-types.js index 0b62155..818ac5f 100644 --- a/src/data-types.js +++ b/src/data-types.js @@ -546,4 +546,6 @@ module.exports = function (Sequelize) { Sequelize.ARRAY = ARRAY; Sequelize.GEOMETRY = GEOMETRY; Sequelize.GEOGRAPHY = GEOGRAPHY; + + return Sequelize; };