(ctx context.Context, data wshrpc.CommandPublishAppData)
| 1222 | } |
| 1223 | |
| 1224 | func (ws *WshServer) PublishAppCommand(ctx context.Context, data wshrpc.CommandPublishAppData) (*wshrpc.CommandPublishAppRtnData, error) { |
| 1225 | publishedAppId, err := waveappstore.PublishDraft(data.AppId) |
| 1226 | if err != nil { |
| 1227 | return nil, fmt.Errorf("error publishing app: %w", err) |
| 1228 | } |
| 1229 | return &wshrpc.CommandPublishAppRtnData{ |
| 1230 | PublishedAppId: publishedAppId, |
| 1231 | }, nil |
| 1232 | } |
| 1233 | |
| 1234 | func (ws *WshServer) MakeDraftFromLocalCommand(ctx context.Context, data wshrpc.CommandMakeDraftFromLocalData) (*wshrpc.CommandMakeDraftFromLocalRtnData, error) { |
| 1235 | draftAppId, err := waveappstore.MakeDraftFromLocal(data.LocalAppId) |
nothing calls this directly
no test coverage detected