mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-01-11 22:51:06 +03:00
fix(listeners-explorer): ignore empty callback return data
This commit is contained in:
parent
fcaa89d097
commit
6656c39bd9
@ -141,7 +141,9 @@ export class ListenersExplorerService
|
|||||||
...args,
|
...args,
|
||||||
async (ctx: Context, next: Function): Promise<void> => {
|
async (ctx: Context, next: Function): Promise<void> => {
|
||||||
const result = await listenerCallbackFn(ctx, next);
|
const result = await listenerCallbackFn(ctx, next);
|
||||||
|
if (result) {
|
||||||
await ctx.reply(String(result));
|
await ctx.reply(String(result));
|
||||||
|
}
|
||||||
// TODO-Possible-Feature: Add more supported return types
|
// TODO-Possible-Feature: Add more supported return types
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user