Added transactions and improved error handling #35
@@ -126,6 +126,7 @@ func (r *ListRepo) CreateListItem(ctx context.Context, listID string, title stri
|
||||
return nil, fmt.Errorf("failed to insert list item: %w", err)
|
||||
}
|
||||
|
||||
l.ListID = listID
|
||||
return l, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user