1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-17 02:58:12 -05:00

push fixes and additions

This commit is contained in:
Kyle Spearrin 2017-04-21 22:39:46 -04:00
parent 89efb07eed
commit f2aa568e86
2 changed files with 5 additions and 2 deletions

View File

@ -565,6 +565,9 @@ namespace Bit.Core.Services
await _organizationUserRepository.CreateAsync(orgUser);
// push
await _pushService.PushSyncOrgKeysAsync(signup.Owner.Id);
return new Tuple<Organization, OrganizationUser>(organization, orgUser);
}
catch

View File

@ -64,7 +64,7 @@ namespace Bit.Core.Services
public async Task PushSyncFolderCreateAsync(Folder folder)
{
await PushFolderAsync(folder, PushType.SyncCipherCreate);
await PushFolderAsync(folder, PushType.SyncFolderCreate);
}
public async Task PushSyncFolderUpdateAsync(Folder folder)
@ -148,7 +148,7 @@ namespace Bit.Core.Services
{
var message = new SyncUserPushNotification
{
Type = PushType.SyncOrgKeys,
Type = type,
UserId = userId,
Date = DateTime.UtcNow,
Aps = new PushNotification.AppleData { ContentAvailable = 1 }