Skip to content

Commit e1f8eec

Browse files
author
otomi
committed
fix: no admin team in teams list
1 parent 4c73108 commit e1f8eec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/teams.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export default function (otomi: OtomiStack): OperationHandlerArray {
88
const GET: Operation = [
99
(req, res): void => {
1010
debug('getTeams')
11-
const data = otomi.getTeams()
11+
// we filter admin team here as it is not for console
12+
const data = otomi.getTeams().filter((t) => t.id !== 'admin')
1213
res.json(data)
1314
},
1415
]

0 commit comments

Comments
 (0)