Answers for "Model not initialized: Member "findOne" cannot be called."

1

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]);
Posted by: Guest on September-22-2020

Code answers related to "Model not initialized: Member "findOne" cannot be called."

Browse Popular Code Answers by Language