(ctx context.Context)
| 1103 | } |
| 1104 | |
| 1105 | func getUIDFromContext(ctx context.Context) (uuid.UUID, error) { |
| 1106 | userID := auth.UserID(ctx) |
| 1107 | if userID == "" { |
| 1108 | return uuid.Nil, fmt.Errorf("error getting UID from context: %w", runnerErrors.ErrUnauthorized) |
| 1109 | } |
| 1110 | |
| 1111 | asUUID, err := uuid.Parse(userID) |
| 1112 | if err != nil { |
| 1113 | return uuid.Nil, fmt.Errorf("error parsing UID from context: %w", runnerErrors.ErrUnauthorized) |
| 1114 | } |
| 1115 | return asUUID, nil |
| 1116 | } |
| 1117 | |
| 1118 | func (s *sqlDatabase) sqlToParamTemplate(template Template) (params.Template, error) { |
| 1119 | var data []byte |
no test coverage detected