Browse Source

Fixes

pull/613/head
Sebastian 5 years ago
parent
commit
c674fc0e21
  1. 28
      backend/src/Squidex.Domain.Apps.Entities/History/NotifoService.cs
  2. 2
      backend/src/Squidex.Domain.Apps.Entities/Squidex.Domain.Apps.Entities.csproj
  3. 1
      backend/src/Squidex/Squidex.csproj

28
backend/src/Squidex.Domain.Apps.Entities/History/NotifoService.cs

@ -81,18 +81,19 @@ namespace Squidex.Domain.Apps.Entities.History
return;
}
var settings = new NotificationSettingsDto();
settings[Providers.WebPush] = new NotificationSettingDto
var settings = new NotificationSettingsDto
{
Send = true,
DelayInSeconds = null
};
[Providers.WebPush] = new NotificationSettingDto
{
Send = true,
DelayInSeconds = null
},
settings[Providers.Email] = new NotificationSettingDto
{
Send = true,
DelayInSeconds = 5 * 60
[Providers.Email] = new NotificationSettingDto
{
Send = true,
DelayInSeconds = 5 * 60
}
};
var userRequest = new UpsertUserDto
@ -148,9 +149,10 @@ namespace Squidex.Domain.Apps.Entities.History
{
foreach (var userId in comment.Mentions!)
{
var publishRequest = new PublishRequestDto();
publishRequest.Topic = $"users/{userId}";
var publishRequest = new PublishRequestDto
{
Topic = $"users/{userId}"
};
publishRequest.Properties["SquidexApp"] = comment.AppId.Name;
publishRequest.Preformatted = new NotificationFormattingDto();

2
backend/src/Squidex.Domain.Apps.Entities/Squidex.Domain.Apps.Entities.csproj

@ -31,7 +31,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Orleans.Core" Version="3.3.0" />
<PackageReference Include="Notifo.SDK" Version="1.0.0-alpha9" />
<PackageReference Include="Notifo.SDK" Version="1.0.0-alpha11" />
<PackageReference Include="RefactoringEssentials" Version="5.6.0" PrivateAssets="all" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="all" />
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />

1
backend/src/Squidex/Squidex.csproj

@ -5,6 +5,7 @@
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

Loading…
Cancel
Save