Skip to content

Commit

Permalink
Merge pull request #7406 from jrjohnson/4953-school-config
Browse files Browse the repository at this point in the history
Temporarily add school config serializer
  • Loading branch information
stopfstedt committed Sep 13, 2023
2 parents 6e69ebf + 8dc6bf2 commit d3f0555
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/serializers/school-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import IliosSerializer from 'ilios-common/serializers/ilios';

export default class SchoolConfigSerializer extends IliosSerializer {
serialize(snapshot, options) {
const originalValue = snapshot.attr('value');
let json = super.serialize(snapshot, options);

if (originalValue === false) {
json.data.attributes.value = 'false';
}

return json;
}
}

0 comments on commit d3f0555

Please sign in to comment.