mirror of
https://github.com/bitwarden/browser
synced 2026-02-06 19:53:59 +00:00
Mark getProfileCreationDate as deprecated (#18651)
* mark `getProfileCreationDate` as deprecated * add reference to tech debt ticket
This commit is contained in:
@@ -21,6 +21,9 @@ export class VaultProfileService {
|
||||
* Returns the creation date of the profile.
|
||||
* Note: `Date`s are mutable in JS, creating a new
|
||||
* instance is important to avoid unwanted changes.
|
||||
*
|
||||
* @deprecated use `creationDate` directly from the `AccountService.activeAccount$` instead,
|
||||
* PM-31409 will replace all usages of this service.
|
||||
*/
|
||||
async getProfileCreationDate(userId: string): Promise<Date> {
|
||||
if (this.profileCreatedDate && userId === this.userId) {
|
||||
|
||||
Reference in New Issue
Block a user