(ctx context.Context, req *getTxidRequest)
| 712 | } |
| 713 | |
| 714 | func (s *server) getTxid(ctx context.Context, req *getTxidRequest) (*getTxidResponse, error) { |
| 715 | tx, err := s.db.Tx(ctx, db.GraphID(req.GraphUUID)) |
| 716 | if db.IsNotExists(err) { |
| 717 | return nil, httperr.NotFound("graph %q wasn't found", req.GraphUUID) |
| 718 | } else if err != nil { |
| 719 | return nil, httperr.Internal("failed to load graph: %w", err) |
| 720 | } |
| 721 | return &getTxidResponse{ |
| 722 | Txid: int64(tx), |
| 723 | }, nil |
| 724 | } |
| 725 | |
| 726 | type getDeletionRequest struct { |
| 727 | GraphUUID string `json:"GraphUUID"` |
nothing calls this directly
no test coverage detected