server: change default value for api/admin/show-users origin param

Changed from "local" to "combined" to fix a bug when the hostname is set
but origin is not.

Changelog: Changed
This commit is contained in:
Johann150 2023-01-01 22:11:19 +01:00
parent 0b7c9095bf
commit 8b0b7ff525
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -26,13 +26,11 @@ export const paramDef = {
offset: { type: 'integer', default: 0 },
sort: { type: 'string', enum: ['+follower', '-follower', '+createdAt', '-createdAt', '+updatedAt', '-updatedAt'] },
state: { type: 'string', enum: ['all', 'alive', 'available', 'admin', 'moderator', 'adminOrModerator', 'silenced', 'suspended'], default: 'all' },
origin: { type: 'string', enum: ['combined', 'local', 'remote'], default: 'local' },
origin: { type: 'string', enum: ['combined', 'local', 'remote'], default: 'combined' },
username: { type: 'string', nullable: true, default: null },
hostname: {
type: 'string',
nullable: true,
default: null,
description: 'The local host is represented with `null`.',
description: "To represent the local host, use `origin: 'local'` instead.",
},
},
required: [],