diff options
author | Joas Schilling <coding@schilljs.com> | 2020-12-04 13:58:40 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-12-10 13:47:04 +0300 |
commit | 11e8e28b87467954546ed5c5acf7ad78b38ec8f3 (patch) | |
tree | 66c29de975c913aa8e25f9b86f4fa347e24b7d7c /src | |
parent | 4ebae32362d081c144717c58d4549e22aabb683e (diff) |
Interact with integers so we can match it better in queries
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/constants.js | 4 | ||||
-rw-r--r-- | src/services/settingsService.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/constants.js b/src/constants.js index 6beaaa2e2..121eafb3d 100644 --- a/src/constants.js +++ b/src/constants.js @@ -97,6 +97,6 @@ export const FLOW = { }, } export const PRIVACY = { - PRIVATE: 'private', - PUBLIC: 'public', + PUBLIC: 0, + PRIVATE: 1, } diff --git a/src/services/settingsService.js b/src/services/settingsService.js index 2ba6a1c14..abc67c8e6 100644 --- a/src/services/settingsService.js +++ b/src/services/settingsService.js @@ -39,7 +39,7 @@ const setAttachmentFolder = async function(path) { /** * Sets the read status privacy setting for the user * - * @param {string} privacy The selected value, either 'private' or 'public' + * @param {int} privacy The selected value, either 0 or 1 * @returns {Object} The axios response */ const setReadStatusPrivacy = async function(privacy) { |