Added transaction feature, fixed some mistakes

This commit is contained in:
2026-04-11 11:12:54 +03:00
parent 6872563c62
commit 545b05d5a0
37 changed files with 2509 additions and 115 deletions
+3 -2
View File
@@ -76,12 +76,13 @@ func (h *Handler) handleCreateFamilyName(msg *tgbotapi.Message) {
if strings.TrimSpace(chatName) == "" {
chatName = familyName
}
chatID := msg.Chat.ID
err = h.receiptApi.CreateFamily(ctx, domain.CreateFamilyRequest{
Name: familyName,
OwnerID: user.ID,
TelegramChatID: msg.Chat.ID,
TelegramChatName: chatName,
TelegramChatID: &chatID,
TelegramChatName: &chatName,
})
if err != nil {
log.Printf("failed to create family in api: %v", err)