1
0
Fork 0
mirror of synced 2024-09-24 13:21:53 +12:00

set custom configs quotas to right number

This commit is contained in:
Martin McKeaveney 2024-09-18 17:42:55 +01:00
parent 69b2bf9bdb
commit 8a399bfbdf
2 changed files with 3 additions and 1 deletions

@ -1 +1 @@
Subproject commit 320f8ecf8ae769995590ddc4e3679ef7c110bc11
Subproject commit 4300b75bde89e37bb0bace927a0e8d204367ae71

View file

@ -253,6 +253,8 @@ export async function save(ctx: UserCtx<Config>) {
if (existingConfig) {
await verifyAIConfig(config, existingConfig)
}
const numConfigs = Object.keys(config).length
await pro.quotas.updateCustomAIConfigCount(numConfigs)
break
}
} catch (err: any) {