feat: sync deployed v1.0.0-rc.38-custom.42
Sync production source including routing, billing, Astra detection and public uptime. Update custom build instructions and license packaging.
This commit is contained in:
1 parent
aa6c3f50f4
commit
ceddfd3d6b
828 files changed
+122253
-13702
No files matched your search
@@ -17,6 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { api } from '@/lib/api'
|
||||
import { requireServerSuccess } from '@/lib/server-error-message'
|
||||
|
||||
import { API_ENDPOINTS } from './constants'
|
||||
import type {
|
||||
@@ -48,6 +49,7 @@ export async function getUserModels(group: string): Promise<ModelOption[]> {
|
||||
params: { group },
|
||||
})
|
||||
const { data } = res
|
||||
requireServerSuccess(data)
|
||||
|
||||
if (!data.success || !Array.isArray(data.data)) {
|
||||
return []
|
||||
@@ -65,6 +67,7 @@ export async function getUserModels(group: string): Promise<ModelOption[]> {
|
||||
export async function getUserGroups(): Promise<GroupOption[]> {
|
||||
const res = await api.get(API_ENDPOINTS.USER_GROUPS)
|
||||
const { data } = res
|
||||
requireServerSuccess(data)
|
||||
|
||||
if (!data.success || !data.data) {
|
||||
return []
|
||||
|
||||
Reference in new issue
Block a user