Skip to content

Commit

Permalink
feat(notification): adjust mail and notification path
Browse files Browse the repository at this point in the history
Refs: #15
  • Loading branch information
Phil91 committed Apr 17, 2024
1 parent 09f4dc9 commit 6359c40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/externalservices/Portal.Service/Services/PortalService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task AddNotification(string content, Guid requester, NotificationTy
{
var client = await _tokenService.GetAuthorizedClient<PortalService>(_settings, cancellationToken).ConfigureAwait(false);
var data = new NotificationRequest(requester, content, notificationTypeId);
await client.PostAsJsonAsync("api/notifications/management", data, Options, cancellationToken)
await client.PostAsJsonAsync("api/notifications/ssi-credentials", data, Options, cancellationToken)
.CatchingIntoServiceExceptionFor("notification", HttpAsyncResponseMessageExtension.RecoverOptions.REQUEST_EXCEPTION)
.ConfigureAwait(false);
}
Expand All @@ -53,7 +53,7 @@ public async Task TriggerMail(string template, Guid requester, IEnumerable<MailP
{
var client = await _tokenService.GetAuthorizedClient<PortalService>(_settings, cancellationToken).ConfigureAwait(false);
var data = new MailData(requester, template, mailParameters);
await client.PostAsJsonAsync("api/administration/mail", data, Options, cancellationToken)
await client.PostAsJsonAsync("api/administration/mail/ssi-credentials", data, Options, cancellationToken)
.CatchingIntoServiceExceptionFor("mail", HttpAsyncResponseMessageExtension.RecoverOptions.REQUEST_EXCEPTION)
.ConfigureAwait(false);
}
Expand Down
9 changes: 1 addition & 8 deletions src/issuer/SsiCredentialIssuer.Service/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@
"StatusListUrl": "",
"MaxPageSize": 15,
"EncryptionConfigIndex": 0,
"EncryptionConfigs": [
{
"Index": 0,
"EncryptionKey": "",
"CipherMode": "",
"PaddingMode": ""
}
]
"EncryptionConfigs": []
}
}

0 comments on commit 6359c40

Please sign in to comment.