fix(api): fix update team settings and make request schema type-safe

This commit is contained in:
yiling
2026-06-30 14:41:50 +08:00
parent d32707d038
commit 34a69a33bf
5 changed files with 34 additions and 15 deletions
+9
View File
@@ -260,6 +260,15 @@ describe('TeamService', () => {
const newSettings = await teamService.getSettings(team.id)
expect(newSettings).toEqual({ theme: 'dark', semanticSearchEnabled: false })
await teamService.updateSettings(team.id, 'transcode.videoStrategy', 'all')
const finalSettings = await teamService.getSettings(team.id)
expect(finalSettings).toEqual({
theme: 'dark',
transcode: { videoStrategy: 'all' },
semanticSearchEnabled: false,
})
})
it('should create sandbox when team is created', async () => {