summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/users/groups/owned.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api/endpoints/users/groups/owned.ts')
-rw-r--r--src/server/api/endpoints/users/groups/owned.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/server/api/endpoints/users/groups/owned.ts b/src/server/api/endpoints/users/groups/owned.ts
index 6cf39a142b..e2c0bf2fc1 100644
--- a/src/server/api/endpoints/users/groups/owned.ts
+++ b/src/server/api/endpoints/users/groups/owned.ts
@@ -1,6 +1,5 @@
import define from '../../../define';
import { UserGroups } from '../../../../../models';
-import { types, bool } from '../../../../../misc/schema';
export const meta = {
desc: {
@@ -14,11 +13,11 @@ export const meta = {
kind: 'read:user-groups',
res: {
- type: types.array,
- optional: bool.false, nullable: bool.false,
+ type: 'array' as const,
+ optional: false as const, nullable: false as const,
items: {
- type: types.object,
- optional: bool.false, nullable: bool.false,
+ type: 'object' as const,
+ optional: false as const, nullable: false as const,
ref: 'UserGroup',
}
},