(ctx context.Context, data wshrpc.CommandMakeDraftFromLocalData)
| 1232 | } |
| 1233 | |
| 1234 | func (ws *WshServer) MakeDraftFromLocalCommand(ctx context.Context, data wshrpc.CommandMakeDraftFromLocalData) (*wshrpc.CommandMakeDraftFromLocalRtnData, error) { |
| 1235 | draftAppId, err := waveappstore.MakeDraftFromLocal(data.LocalAppId) |
| 1236 | if err != nil { |
| 1237 | return nil, fmt.Errorf("error making draft from local: %w", err) |
| 1238 | } |
| 1239 | return &wshrpc.CommandMakeDraftFromLocalRtnData{ |
| 1240 | DraftAppId: draftAppId, |
| 1241 | }, nil |
| 1242 | } |
| 1243 | |
| 1244 | func (ws *WshServer) RecordTEventCommand(ctx context.Context, data telemetrydata.TEvent) error { |
| 1245 | err := telemetry.RecordTEvent(ctx, &data) |
nothing calls this directly
no test coverage detected