Add Suno pagination (#169)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
ddb8cc2ea1
commit
5d91f2699a
44 files changed
+1148
-942
No files matched your search
@@ -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
|
||||
}
|
||||
: {})
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user