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

No user id on creating a new article #126

Open
ppastene opened this issue May 16, 2021 · 1 comment
Open

No user id on creating a new article #126

ppastene opened this issue May 16, 2021 · 1 comment

Comments

@ppastene
Copy link

Im using Ember Realworld with Adonis realworld as backend, When they registrate, login and edit their account it works ok, but when it creates a new article the server returns a 500 code with the following message

{ message: "insert into articles (author, body, createdAt, description, slug, title, updatedAt, user_id) values (NULL, 'This is the content', '2021-05-16 01:39:07.272', 'This is the subtitle', 'this-is-the-title', 'This is the title', '2021-05-16 01:39:07.272', 1) - SQLITE_ERROR: table articles has no column named author", name: "Error", status: 500, … }

It seems that the frontend doesn't send the user id (and neither the createdAt date) to the backend when inserts a new article
image

@Alonski
Copy link
Member

Alonski commented May 21, 2021

Hmm @ppastene this is weird. Must have happened during an upgrade.
Do you have the time to fix this and submit a PR please?

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

2 participants