We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a28068 commit c73ba3aCopy full SHA for c73ba3a
src/templates/snek/gql/tasks/user.ts
@@ -106,15 +106,15 @@ class SnekGqlUserTasks {
106
/**
107
* Get profile.
108
*
109
- * @param {string} slug Slug: <user_<username>>
+ * @param {string} username Username: <username>
110
* @returns {Promise<ApolloResult<ProfileData>>} The profile page of a user
111
*/
112
- async profile(slug: string): Promise<ApolloResult<ProfileData>> {
+ async profile(username: string): Promise<ApolloResult<ProfileData>> {
113
const response = await this.parent.run<ProfileData>(
114
"query",
115
this.parent.template.queries.user.profile,
116
{
117
- slug,
+ username,
118
token: await this.parent.session.upToDateToken(),
119
}
120
);
0 commit comments