1
0
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:
Nick Krantz
2026-02-02 10:59:27 -06:00
committed by GitHub
parent 2c30fb72ba
commit 98060d15bc

View File

@@ -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) {