1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-23 05:55:13 -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); await _organizationUserRepository.CreateAsync(orgUser);
// push
await _pushService.PushSyncOrgKeysAsync(signup.Owner.Id);
return new Tuple<Organization, OrganizationUser>(organization, orgUser); return new Tuple<Organization, OrganizationUser>(organization, orgUser);
} }
catch catch

View File

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