1 import { BindOrReplacements, QueryTypes } from 'sequelize'
2 import { sequelizeTypescript } from '@server/initializers/database'
4 function doesExist (query: string, bind?: BindOrReplacements) {
6 type: QueryTypes.SELECT as QueryTypes.SELECT,
11 return sequelizeTypescript.query(query, options)
12 .then(results => results.length === 1)