Merge pull request 'Finishline' (#164) from finishline into main
Reviewed-on: #164
This commit was merged in pull request #164.
This commit is contained in:
@@ -11,8 +11,8 @@ public class SyncUserEndpoint : IEndpoint
|
|||||||
{
|
{
|
||||||
public void Map(IEndpointRouteBuilder builder)
|
public void Map(IEndpointRouteBuilder builder)
|
||||||
{
|
{
|
||||||
builder.MapPost("api/integration/sync", async (IJobOrchestrator jobOrchestrator,
|
builder.MapPost("api/integration/sync", async (HttpContext context, IUserService service,
|
||||||
HttpContext context, IUserService service, CancellationToken cancellationToken = default) =>
|
CancellationToken cancellationToken = default) =>
|
||||||
await service.SyncUserAsync(context.GetUserId(), context.GetUserEmail(), context.GetUserRole(), cancellationToken) switch
|
await service.SyncUserAsync(context.GetUserId(), context.GetUserEmail(), context.GetUserRole(), cancellationToken) switch
|
||||||
{
|
{
|
||||||
{ IsSuccess: true } => Results.Ok(),
|
{ IsSuccess: true } => Results.Ok(),
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"EnableServiceCaching": true,
|
"EnableServiceCaching": true,
|
||||||
"CorsOrigins": [
|
"CorsOrigins": [
|
||||||
|
"https://partner.ifri.khongisa.co.za",
|
||||||
"https://console.ifri.khongisa.co.za",
|
"https://console.ifri.khongisa.co.za",
|
||||||
"https://localhost:7208"
|
"https://localhost:7208"
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user