Skip to content

Commit de1fdf3

Browse files
fix: class getters for database
1 parent 85f8b19 commit de1fdf3

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/services/account.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,11 @@ export class Account extends Service {
153153
/**
154154
* Update Account Phone
155155
*
156-
* Update currently logged in user account phone number. After changing phone
157-
* number, the user confirmation status will get reset. A new confirmation SMS
158-
* is not sent automatically however you can use the phone confirmation
159-
* endpoint again to send the confirmation SMS.
156+
* Update the currently logged in user's phone number. After updating the
157+
* phone number, the phone verification status will be reset. A confirmation
158+
* SMS is not sent automatically, however you can use the [POST
159+
* /account/verification/phone](/docs/client/account#accountCreatePhoneVerification)
160+
* endpoint to send a confirmation SMS.
160161
*
161162
* @param {string} number
162163
* @param {string} password
@@ -519,13 +520,12 @@ export class Account extends Service {
519520
/**
520521
* Create Phone Verification
521522
*
522-
* Use this endpoint to send a verification message to your user's phone
523-
* number to confirm they are the valid owners of that address. The provided
524-
* secret should allow you to complete the verification process by verifying
525-
* both the **userId** and **secret** parameters. Learn more about how to
526-
* [complete the verification
523+
* Use this endpoint to send a verification SMS to the currently logged in
524+
* user. This endpoint is meant for use after updating a user's phone number
525+
* using the [accountUpdatePhone](/docs/client/account#accountUpdatePhone)
526+
* endpoint. Learn more about how to [complete the verification
527527
* process](/docs/client/account#accountUpdatePhoneVerification). The
528-
* verification link sent to the user's phone number is valid for 15 minutes.
528+
* verification code sent to the user's phone number is valid for 15 minutes.
529529
*
530530
* @throws {AppwriteException}
531531
* @returns {Promise}

src/services/databases.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class Databases extends Service {
1919
{
2020
this.databaseId = databaseId;
2121
}
22-
public getDatabaseId(databaseId: string): string
22+
public getDatabaseId(): string
2323
{
2424
return this.databaseId;
2525
}

0 commit comments

Comments
 (0)