This PR fixes an issue where users with facebook-pixel values (pre-cms) could not edit their settings page. The issue was that the facebook-pixel value is always a 15 digit number, and sites which edited via github would have entered it as such - we would thus be reading and attempting to write facebook-pixel values as a number, while our request schema specified a string.
The fix for this is to parse the value as a string on read, in order to account for users who may have inserted the facebook-pixel value as a number (e.g. facebook-pixel: 12345).
This PR is to be reviewed in conjunction with PR #1282 on the isomercms-frontend repo.
Problem
This PR fixes an issue where users with facebook-pixel values (pre-cms) could not edit their settings page. The issue was that the facebook-pixel value is always a 15 digit number, and sites which edited via github would have entered it as such - we would thus be reading and attempting to write facebook-pixel values as a number, while our request schema specified a string.
The fix for this is to parse the value as a string on read, in order to account for users who may have inserted the
facebook-pixel
value as a number (e.g.facebook-pixel: 12345
).This PR is to be reviewed in conjunction with PR #1282 on the isomercms-frontend repo.