Skip to content

Commit

Permalink
fix: use json-api serializer for file model
Browse files Browse the repository at this point in the history
  • Loading branch information
czosel committed Dec 7, 2023
1 parent 9981b82 commit 3a5a1d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/serializers/file.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import JSONSerializer from "@ember-data/serializer/json";
import JSONSerializer from "@ember-data/serializer/json-api";

/*
* If pagination is enabled in the backend, the response format will be changed.
Expand All @@ -14,7 +14,7 @@ export default class TemplateSerializer extends JSONSerializer {
serializeIntoHash = null;

serialize(snapshot) {
const { name, variant, content} = snapshot.attributes();
const { name, variant, content } = snapshot.attributes();

const formData = new FormData();

Expand Down

0 comments on commit 3a5a1d5

Please sign in to comment.