backend: return project from Task#as_json

This commit is contained in:
0x1eef 2024-01-09 02:07:47 -03:00
parent 6bd3e3ad65
commit 026e11af11

View file

@ -16,8 +16,8 @@ class Twenty::Task < Twenty::Model
# Associations
belongs_to :project, class_name: "Twenty::Project"
def to_json(options = {})
def as_json(options = {})
{id:, title:, content:, status:,
project_id:, created_at:, updated_at:}.to_json(options)
project:, created_at:, updated_at:}.as_json(options)
end
end