forked from FoundKeyGang/FoundKey
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:
parent
0b7c9095bf
commit
8b0b7ff525
1 changed files with 2 additions and 4 deletions
|
@ -26,13 +26,11 @@ export const paramDef = {
|
||||||
offset: { type: 'integer', default: 0 },
|
offset: { type: 'integer', default: 0 },
|
||||||
sort: { type: 'string', enum: ['+follower', '-follower', '+createdAt', '-createdAt', '+updatedAt', '-updatedAt'] },
|
sort: { type: 'string', enum: ['+follower', '-follower', '+createdAt', '-createdAt', '+updatedAt', '-updatedAt'] },
|
||||||
state: { type: 'string', enum: ['all', 'alive', 'available', 'admin', 'moderator', 'adminOrModerator', 'silenced', 'suspended'], default: 'all' },
|
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 },
|
username: { type: 'string', nullable: true, default: null },
|
||||||
hostname: {
|
hostname: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
nullable: true,
|
description: "To represent the local host, use `origin: 'local'` instead.",
|
||||||
default: null,
|
|
||||||
description: 'The local host is represented with `null`.',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
required: [],
|
required: [],
|
||||||
|
|
Loading…
Reference in a new issue