add bill range

This commit is contained in:
archer
2023-08-20 14:05:13 +08:00
parent 006b1be2c3
commit c7d0975f6d
3 changed files with 10 additions and 12 deletions

View File

@@ -94,9 +94,9 @@ export default withNextCors(async function handler(req: NextApiRequest, res: Nex
if (!user) {
throw new Error('Account is error');
}
if (authType === AuthUserTypeEnum.apikey || shareId) {
user.openaiAccount = undefined;
}
// if (authType === AuthUserTypeEnum.apikey || shareId) {
// user.openaiAccount = undefined;
// }
appId = appId ? appId : authAppid;
if (!appId) {