1
0
Fork 0
mirror of synced 2024-10-03 19:53:33 +13:00

Update number -> phone usages

This commit is contained in:
Jake Barnby 2022-09-21 19:05:35 +12:00
parent 378d02f269
commit 9f008a18ea
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
3 changed files with 6 additions and 6 deletions

View file

@ -389,7 +389,7 @@ class GraphQLAccountTest extends Scope
$graphQLPayload = [
'query' => $query,
'variables' => [
'number' => '+123456789',
'phone' => '+123456789',
'password' => 'password',
]
];

View file

@ -606,8 +606,8 @@ trait GraphQLBase
}
}';
case self::$UPDATE_USER_PHONE:
return 'mutation updateUserPhone($userId: String!, $number: String!){
usersUpdatePhone(userId: $userId, number: $number) {
return 'mutation updateUserPhone($userId: String!, $phone: String!){
usersUpdatePhone(userId: $userId, phone: $phone) {
name
phone
email
@ -795,8 +795,8 @@ trait GraphQLBase
}
}';
case self::$UPDATE_ACCOUNT_PHONE:
return 'mutation updateAccountPhone($number: String!, $password: String!){
accountUpdatePhone(number: $number, password: $password) {
return 'mutation updateAccountPhone($phone: String!, $password: String!){
accountUpdatePhone(phone: $phone, password: $password) {
_id
name
status

View file

@ -316,7 +316,7 @@ class GraphQLUsersTest extends Scope
'query' => $query,
'variables' => [
'userId' => $this->getUser()['$id'],
'number' => '+123456789'
'phone' => '+123456789'
],
];