Add Suno pagination (#169)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2025-02-07 23:52:05 +08:00
1 parent ddb8cc2ea1
commit 5d91f2699a
44 files changed
+1148 -942

No files matched your search

+12
View File
@@ -39,6 +39,8 @@ class SunoOperator {
type?: string;
limit?: number;
offset?: number;
createdAtMax?: number;
createdAtMin?: number;
},
options: { token: string }
): Promise<AxiosResponse<ISunoTasksResponse>> {
@@ -75,6 +77,16 @@ class SunoOperator {
? {
offset: filter.offset
}
: {}),
...(filter.createdAtMax !== undefined
? {
created_at_max: filter.createdAtMax
}
: {}),
...(filter.createdAtMin !== undefined
? {
created_at_min: filter.createdAtMin
}
: {})
},
{