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

Asset custom fields are ignored #844

Closed
Draykee opened this issue Apr 25, 2021 · 0 comments
Closed

Asset custom fields are ignored #844

Draykee opened this issue Apr 25, 2021 · 0 comments
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@Draykee
Copy link
Contributor

Draykee commented Apr 25, 2021

Describe the bug
AssetService.create(ctx: RequestContext, input: CreateAssetInput) ignores input.customFields

const result = await this.createAssetInternal(ctx, stream, filename, mimetype);

export type CreateAssetInput = {
  file: Scalars['Upload'];
  tags?: Maybe<Array<Scalars['String']>>;
  customFields?: Maybe<Scalars['JSON']>;  //< is ignored
};

To Reproduce
Steps to reproduce the behavior:

  1. Execute a createAssets mutation with customFields input
  2. Custom fields are ignored

Expected behavior
Custom fields are properly parsed and present in the database asset table

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants