Skip to content

Commit c73ba3a

Browse files
committed
Update profile task
The task is updated due to changes in the profile query.
1 parent 8a28068 commit c73ba3a

File tree

1 file changed

+3
-3
lines changed
  • src/templates/snek/gql/tasks

1 file changed

+3
-3
lines changed

src/templates/snek/gql/tasks/user.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ class SnekGqlUserTasks {
106106
/**
107107
* Get profile.
108108
*
109-
* @param {string} slug Slug: <user_<username>>
109+
* @param {string} username Username: <username>
110110
* @returns {Promise<ApolloResult<ProfileData>>} The profile page of a user
111111
*/
112-
async profile(slug: string): Promise<ApolloResult<ProfileData>> {
112+
async profile(username: string): Promise<ApolloResult<ProfileData>> {
113113
const response = await this.parent.run<ProfileData>(
114114
"query",
115115
this.parent.template.queries.user.profile,
116116
{
117-
slug,
117+
username,
118118
token: await this.parent.session.upToDateToken(),
119119
}
120120
);

0 commit comments

Comments
 (0)