fix: align tenant_id content filter
This commit is contained in:
@@ -2,10 +2,10 @@ import { request } from '../utils/request';
|
||||
|
||||
export const contentApi = {
|
||||
list: (params) => {
|
||||
if (params.tenantId) {
|
||||
const { tenantId, ...rest } = params;
|
||||
if (params.tenant_id) {
|
||||
const { tenant_id: tenantID, ...rest } = params;
|
||||
const qs = new URLSearchParams(rest).toString();
|
||||
return request(`/creators/${tenantId}/contents?${qs}`);
|
||||
return request(`/creators/${tenantID}/contents?${qs}`);
|
||||
}
|
||||
const qs = new URLSearchParams(params).toString();
|
||||
return request(`/contents?${qs}`);
|
||||
|
||||
Reference in New Issue
Block a user