Skip to content

No user id on creating a new article #126

@ppastene

Description

@ppastene

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions