fix: align portal queries and super auth
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
import { request } from "../utils/request";
|
||||
|
||||
export const contentApi = {
|
||||
list: (params) => {
|
||||
list: (params = {}) => {
|
||||
if (params.tenantId) {
|
||||
const { tenantId: tenantID, ...rest } = params;
|
||||
const qs = new URLSearchParams(rest).toString();
|
||||
return request(`/creators/${tenantID}/contents?${qs}`);
|
||||
}
|
||||
if (params.tenant_id) {
|
||||
const { tenant_id: tenantID, ...rest } = params;
|
||||
const qs = new URLSearchParams(rest).toString();
|
||||
|
||||
Reference in New Issue
Block a user