diff --git a/src/db/dbdataemoji.ts b/src/db/dbdataemoji.ts index 867b0199ebfccfddadf10feb8c912f37f7936aa5..5f211a595842d17df9c56235dda3cb2bccdd690b 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;