Added transaction feature, fixed some mistakes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user