diff --git a/src/client/sw/create-notification.ts b/src/client/sw/create-notification.ts index 390e8c298f..9202ef13fd 100644 --- a/src/client/sw/create-notification.ts +++ b/src/client/sw/create-notification.ts @@ -41,7 +41,7 @@ async function composeNotification(data // users/showの型定義をswos.apiへ当てはめるのが困難なのでapiFetch.requestを直接使用 const account = await getAccountFromId(data.userId); if (!account) return null; - const userDetail = cli.request('users/show', { userId: data.body.userId }, account.token); + const userDetail = await cli.request('users/show', { userId: data.body.userId }, account.token); return [t('_notification.youWereFollowed'), { body: getUserName(data.body.user), icon: data.body.user.avatarUrl,