Skip to content

Commit

Permalink
--wip-- [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad committed Sep 9, 2024
1 parent c8de518 commit 62a0a20
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ public sealed class Dialog
public DialogStatus Status { get; set; }

public Content Content { get; set; } = null!;






public List<Attachment> Attachments { get; set; } = [];
public List<GuiAction> GuiActions { get; set; } = [];
public List<ApiAction> ApiActions { get; set; } = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ public async Task<DialogByIdPayload> DialogUpdated(Guid dialogId,
notFound => new DialogByIdPayload { Errors = [new DialogByIdNotFound { Message = notFound.Message }] },
deleted => new DialogByIdPayload { Errors = [new DialogByIdDeleted { Message = deleted.Message }] },
forbidden => new DialogByIdPayload { Errors = [new DialogByIdForbidden { Message = "Forbidden" }] });

// Return only dialogID?

// TODO: Close sub on error
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public override async ValueTask OnCreateAsync(HttpContext context, IRequestExecu

var getDialogQuery = new GetDialogQuery { DialogId = dialogId };
var result = await mediator.Send(getDialogQuery, cancellationToken);
// close sub on error
}

await base.OnCreateAsync(context, requestExecutor, requestBuilder, cancellationToken);
Expand Down

0 comments on commit 62a0a20

Please sign in to comment.