add package
This commit is contained in:
+2
-2
@@ -62,9 +62,9 @@ async function list(req: Page<EventItem>, options?: ListOptions): Promise<PageRe
|
||||
return await axios.post(`${BASE_URI}/list`, withCurrentStorePage(orderedPage));
|
||||
}
|
||||
|
||||
async function listValid(): Promise<EventItem[]> {
|
||||
async function listValid(storeId?: string): Promise<EventItem[]> {
|
||||
const list = await axios.post(`${BASE_URI}/list/valid`, undefined, {
|
||||
params: { storeId: getCurrentStoreId() }
|
||||
params: { storeId: storeId || getCurrentStoreId() }
|
||||
}) as unknown as EventItem[];
|
||||
return sortEventList(list);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user