Error: Model not initialized: Member "findOne" cannot be called code example
Example: Model not initialized: Member "findOne" cannot be called.
import { Message } from './models/message';
import { User } from './models/user';
import { Sequelize } from 'sequelize-typescript';
const sequelize = new Sequelize({...});
sequelize.addModels([User, Message]);