Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 777f4ed5 rédigé par Sorunome's avatar Sorunome
Parcourir les fichiers

fix emotes not working in postgres

parent f1a71368
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
/* /*
Copyright 2017, 2018 matrix-appservice-discord Copyright 2017 - 2019 matrix-appservice-discord
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
...@@ -42,7 +42,7 @@ export class DbEmoji implements IDbData { ...@@ -42,7 +42,7 @@ export class DbEmoji implements IDbData {
id: params.emoji_id, id: params.emoji_id,
mxc: params.mxc_url, mxc: params.mxc_url,
}); });
this.Result = row !== undefined; this.Result = Boolean(row); // check if row exists
if (this.Result) { if (this.Result) {
this.EmojiId = row.emoji_id as string; this.EmojiId = row.emoji_id as string;
this.Name = row.name as string; this.Name = row.name as string;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter