From 777f4ed5a2e9efebc6ab92ff84f940916bc4b7f1 Mon Sep 17 00:00:00 2001 From: Sorunome <mail@sorunome.de> Date: Sun, 24 Feb 2019 04:49:41 +0100 Subject: [PATCH] fix emotes not working in postgres --- src/db/dbdataemoji.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/dbdataemoji.ts b/src/db/dbdataemoji.ts index 867b019..5f211a5 100644 --- a/src/db/dbdataemoji.ts +++ b/src/db/dbdataemoji.ts @@ -1,5 +1,5 @@ /* -Copyright 2017, 2018 matrix-appservice-discord +Copyright 2017 - 2019 matrix-appservice-discord Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -42,7 +42,7 @@ export class DbEmoji implements IDbData { id: params.emoji_id, mxc: params.mxc_url, }); - this.Result = row !== undefined; + this.Result = Boolean(row); // check if row exists if (this.Result) { this.EmojiId = row.emoji_id as string; this.Name = row.name as string; -- GitLab