Trying to fix save user settings.

This commit is contained in:
Dessalines 2021-01-04 14:09:53 -05:00
parent 7bc9434596
commit 61c6f33103
4 changed files with 9 additions and 9 deletions

View file

@ -14,7 +14,7 @@
"devDependencies": { "devDependencies": {
"@types/jest": "^26.0.19", "@types/jest": "^26.0.19",
"jest": "^26.6.3", "jest": "^26.6.3",
"lemmy-js-client": "1.0.17-beta3", "lemmy-js-client": "1.0.17-beta6",
"node-fetch": "^2.6.1", "node-fetch": "^2.6.1",
"ts-jest": "^26.4.4", "ts-jest": "^26.4.4",
"prettier": "^2.1.2", "prettier": "^2.1.2",

View file

@ -551,8 +551,8 @@ export async function saveUserSettingsBio(
let form: SaveUserSettings = { let form: SaveUserSettings = {
show_nsfw: true, show_nsfw: true,
theme: 'darkly', theme: 'darkly',
default_sort_type: SortType.Active, default_sort_type: Object.keys(SortType).indexOf(SortType.Active),
default_listing_type: ListingType.All, default_listing_type: Object.keys(ListingType).indexOf(ListingType.All),
lang: 'en', lang: 'en',
show_avatars: true, show_avatars: true,
send_notifications_to_email: false, send_notifications_to_email: false,

View file

@ -44,8 +44,8 @@ test('Set some user settings, check that they are federated', async () => {
let form: SaveUserSettings = { let form: SaveUserSettings = {
show_nsfw: false, show_nsfw: false,
theme: '', theme: '',
default_sort_type: SortType.Hot, default_sort_type: Object.keys(SortType).indexOf(SortType.Hot),
default_listing_type: ListingType.All, default_listing_type: Object.keys(ListingType).indexOf(ListingType.All),
lang: '', lang: '',
avatar, avatar,
banner, banner,

View file

@ -3210,10 +3210,10 @@ language-tags@^1.0.5:
dependencies: dependencies:
language-subtag-registry "~0.3.2" language-subtag-registry "~0.3.2"
lemmy-js-client@1.0.17-beta3: lemmy-js-client@1.0.17-beta6:
version "1.0.17-beta3" version "1.0.17-beta6"
resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-1.0.17-beta3.tgz#ad53f3fd57e7656732f0ccde4f6b22242d77fd9b" resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-1.0.17-beta6.tgz#afe1e1da13172a161c4d976b1ee58fe81eb22829"
integrity sha512-0GIStZtmkCZmKk12faEusYyEIdDhhnSZ52HIu1b8rPhl68OrxVYBRbl2DQC6Ue7LFR2yMsa1q6Mp1UrTCTssRA== integrity sha512-+oX7J7wht8nH4a5NQngK1GNner3TDv6ZOhQQVI5KcK7vynVVIcgveC5KBJArHBAl5acXpLs3Khmx0ZEb+sErJA==
leven@^3.1.0: leven@^3.1.0:
version "3.1.0" version "3.1.0"