fix user refresh
This commit is contained in:
parent
0b2a64e449
commit
cc3d138fd3
6 changed files with 6 additions and 13 deletions
|
@ -52,7 +52,7 @@ export default function HomePage({ postsService, mediaService }: HomePageProps)
|
|||
}
|
||||
}),
|
||||
)
|
||||
const postId = await postsService.createNew(user.userId, content, media, isPublic)
|
||||
const postId = await postsService.createNew(user.id, content, media, isPublic)
|
||||
const post = new Post(postId, content, media, Temporal.Now.instant(), user.username)
|
||||
setPages((pages) => [[post], ...pages])
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue