We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f2507b commit 160c17aCopy full SHA for 160c17a
functions/server-bot/on-message.ts
@@ -39,14 +39,12 @@ export const onMessage = (envSafe: EnvSafe) => async (ctx: Context) => {
39
);
40
return;
41
}
42
- const [decks] = await Promise.all([
43
- getDecksCreatedByMe(envSafe, ctx.from.id),
44
- userSetServerBotState(envSafe, ctx.from.id, {
45
- type: "cardAdded",
46
- cardFront: cardAsText.front,
47
- cardBack: cardAsText.back,
48
- }),
49
- ]);
+ await userSetServerBotState(envSafe, ctx.from.id, {
+ type: "cardAdded",
+ cardFront: cardAsText.front,
+ cardBack: cardAsText.back,
+ });
+ const decks = await getDecksCreatedByMe(envSafe, ctx.from.id);
50
51
await ctx.reply("To create a card from it, select a deck: ", {
52
reply_markup: InlineKeyboard.from(
0 commit comments