Fix style issue

pull/5/head
trivernis 5 years ago
parent f58dc4a33c
commit f57f638104

@ -356,7 +356,8 @@ namespace dataaccess {
* @param phrase * @param phrase
* @param language * @param language
*/ */
export async function checkBlacklisted(phrase: string, language: string = "en"): Promise<models.BlacklistedPhrase[]> { export async function checkBlacklisted(phrase: string, language: string = "en"):
Promise<models.BlacklistedPhrase[]> {
return sequelize.query<BlacklistedPhrase>(` return sequelize.query<BlacklistedPhrase>(`
SELECT * FROM blacklisted_phrases WHERE ? ~* phrase AND language = ?`, SELECT * FROM blacklisted_phrases WHERE ? ~* phrase AND language = ?`,
{replacements: [phrase, language], mapToModel: true, model: BlacklistedPhrase}); {replacements: [phrase, language], mapToModel: true, model: BlacklistedPhrase});

Loading…
Cancel
Save