Fix style issue

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

@ -356,7 +356,8 @@ namespace dataaccess {
* @param phrase
* @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>(`
SELECT * FROM blacklisted_phrases WHERE ? ~* phrase AND language = ?`,
{replacements: [phrase, language], mapToModel: true, model: BlacklistedPhrase});

Loading…
Cancel
Save