Skip to content

Commit f077450

Browse files
committed
Improve profile task
The person task no longer accepts a slug but a personName.
1 parent 37b77da commit f077450

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
@@ -130,15 +130,15 @@ class SnekGqlUserTasks {
130130
/**
131131
* Get profile.
132132
*
133-
* @param {string} slug Slug: <p-<personName>>
133+
* @param {string} personName personName: <schettn>
134134
* @returns {Promise<ApolloResult<ProfileData>>} The profile page of a user
135135
*/
136-
async profile(slug: string): Promise<ApolloResult<ProfileData>> {
136+
async profile(personName: string): Promise<ApolloResult<ProfileData>> {
137137
const response = await this.parent.run<ProfileData>(
138138
"query",
139139
this.parent.template.queries.user.profile,
140140
{
141-
slug,
141+
slug: `p-${personName}`,
142142
token: await this.parent.session.upToDateToken(),
143143
}
144144
);

0 commit comments

Comments
 (0)