diff options
Diffstat (limited to 'server/tests/utils/users/users.ts')
-rw-r--r-- | server/tests/utils/users/users.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/tests/utils/users/users.ts b/server/tests/utils/users/users.ts index 3c9d46246..daf731a14 100644 --- a/server/tests/utils/users/users.ts +++ b/server/tests/utils/users/users.ts | |||
@@ -131,6 +131,7 @@ function updateMyUser (options: { | |||
131 | displayNSFW?: boolean, | 131 | displayNSFW?: boolean, |
132 | email?: string, | 132 | email?: string, |
133 | autoPlayVideo?: boolean | 133 | autoPlayVideo?: boolean |
134 | description?: string | ||
134 | }) { | 135 | }) { |
135 | const path = '/api/v1/users/me' | 136 | const path = '/api/v1/users/me' |
136 | 137 | ||
@@ -139,6 +140,7 @@ function updateMyUser (options: { | |||
139 | if (options.displayNSFW !== undefined && options.displayNSFW !== null) toSend['displayNSFW'] = options.displayNSFW | 140 | if (options.displayNSFW !== undefined && options.displayNSFW !== null) toSend['displayNSFW'] = options.displayNSFW |
140 | if (options.autoPlayVideo !== undefined && options.autoPlayVideo !== null) toSend['autoPlayVideo'] = options.autoPlayVideo | 141 | if (options.autoPlayVideo !== undefined && options.autoPlayVideo !== null) toSend['autoPlayVideo'] = options.autoPlayVideo |
141 | if (options.email !== undefined && options.email !== null) toSend['email'] = options.email | 142 | if (options.email !== undefined && options.email !== null) toSend['email'] = options.email |
143 | if (options.description !== undefined && options.description !== null) toSend['description'] = options.description | ||
142 | 144 | ||
143 | return makePutBodyRequest({ | 145 | return makePutBodyRequest({ |
144 | url: options.url, | 146 | url: options.url, |