Skip to content
Extraits de code Groupes Projets
Valider ca6968e5 rédigé par Will Hunt's avatar Will Hunt
Parcourir les fichiers

Fix not returning result

parent d034cb0f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -69,12 +69,12 @@ async function run(port: number, fileConfig: DiscordBridgeConfig) { ...@@ -69,12 +69,12 @@ async function run(port: number, fileConfig: DiscordBridgeConfig) {
// onUserQuery: userQuery, // onUserQuery: userQuery,
onAliasQueried: async (alias: string, roomId: string) => { onAliasQueried: async (alias: string, roomId: string) => {
try { try {
await roomhandler.OnAliasQueried(alias, roomId); return await roomhandler.OnAliasQueried(alias, roomId);
} catch (err) { log.error("Exception thrown while handling \"onAliasQueried\" event", err); } } catch (err) { log.error("Exception thrown while handling \"onAliasQueried\" event", err); }
}, },
onAliasQuery: async (alias: string, aliasLocalpart: string) => { onAliasQuery: async (alias: string, aliasLocalpart: string) => {
try { try {
await roomhandler.OnAliasQuery(alias, aliasLocalpart) return await roomhandler.OnAliasQuery(alias, aliasLocalpart);
} catch (err) { log.error("Exception thrown while handling \"onAliasQuery\" event", err); } } catch (err) { log.error("Exception thrown while handling \"onAliasQuery\" event", err); }
}, },
onEvent: async (request, context) => { onEvent: async (request, context) => {
......
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