Model not initialized: Member "findOne" cannot be called. "User" needs to be added to a Sequelize instance. 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]);