1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-29 14:43:31 +00:00

refactor to remove deprecated apis

This commit is contained in:
Kyle Spearrin
2017-04-05 16:14:52 -04:00
parent 83c232ecb5
commit acc214d7c1
3 changed files with 6 additions and 5 deletions

View File

@@ -35,7 +35,6 @@
_service.organizations = $resource(_apiUri + '/organizations/:id', {}, {
get: { method: 'GET', params: { id: '@id' } },
getExtended: { url: _apiUri + '/organizations/:id/extended', method: 'GET', params: { id: '@id' } },
list: { method: 'GET', params: {} },
post: { method: 'POST', params: {} },
put: { method: 'POST', params: { id: '@id' } },

View File

@@ -118,7 +118,7 @@ angular
return _setDeferred.promise;
};
_service.addProfileOrganization = function (org) {
_service.addProfileOrganizationOwner = function (org, key) {
return _service.getUserProfile().then(function (profile) {
if (profile) {
if (!profile.organizations) {
@@ -128,7 +128,7 @@ angular
var o = {
id: org.Id,
name: org.Name,
key: org.Key,
key: key,
status: 2, // 2 = Confirmed
type: 0 // 0 = Owner
};