Skip to content

Commit

Permalink
Fix: Move stub method from metadatastore to userstorage
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectmak committed Feb 22, 2021
1 parent 1f77f88 commit 595b1d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/storage/src/metadata/gundbMetadataStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,21 +155,6 @@ export class GundbMetadataStore implements UserMetadataStore {
return store;
}

/**
* Sync the notifications from the temp key with the current space user of this storage.
*
* This is useful for new users who have some pending invitation assigned to the notification.
*
* @param key - temp key gotten from ShareViaPublicKey
*/
static async syncFromTempKey(key: string): Promise<void> {
// enusre current user will have access to invitations in notifications

// move notifications for temp key to current users notifications

// delete notification from temp key
}

/**
* {@inheritDoc @spacehq/sdk#UserMetadataStore.createBucket}
*/
Expand Down
15 changes: 15 additions & 0 deletions packages/storage/src/userStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,21 @@ export class UserStorage {
}, UserStorage.parseMsg);
}

/**
* Sync the notifications from the temp key with the current space user of this storage.
*
* This is useful for new users who have some pending invitation assigned to the notification.
*
* @param key - temp key gotten from ShareViaPublicKey
*/
static async syncFromTempKey(key: string): Promise<void> {
// ensure current user will have access to invitations in notifications

// move notifications for temp key to current users notifications

// delete notification from temp key
}

/**
* Creates an empty folder at the requested path and bucket.
*
Expand Down

0 comments on commit 595b1d3

Please sign in to comment.