Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issues] Authors are not displayed #90

Open
LuSuAllen opened this issue Aug 24, 2022 · 2 comments
Open

[Issues] Authors are not displayed #90

LuSuAllen opened this issue Aug 24, 2022 · 2 comments

Comments

@LuSuAllen
Copy link

I have the property of "Authors" set up in the table database, and the type is set to "Person".
However, I do not see any "Writer" name on the actual post.

See the screenshot attached:
image
image

@Joshwawo
Copy link

Hi, I solved the problem in the following way: I was debugging each function until I reached that point. The error is that probably Notion has changed the way it sends the JSON. The error is located at the following route:

src/lib/getNotionUser.ts

image

As the JSON response changed, it now looks like this, because there is no key in the object with that name. So I just changed the destructuring of GIVEN_NAME and FAMILY_NAME to NAME and this is the result that the response currently gives.

image

image

And here is the demonstration that it worked:

image

Probably you have already solved it, but I leave it for future people. This is my first time doing this on Github 👌.

@huythai855
Copy link

Hi, I solved the problem in the following way: I was debugging each function until I reached that point. The error is that probably Notion has changed the way it sends the JSON. The error is located at the following route:

src/lib/getNotionUser.ts

image

As the JSON response changed, it now looks like this, because there is no key in the object with that name. So I just changed the destructuring of GIVEN_NAME and FAMILY_NAME to NAME and this is the result that the response currently gives.

image

image

And here is the demonstration that it worked:

image

Probably you have already solved it, but I leave it for future people. This is my first time doing this on Github ok_hand.

Thanks, it works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants