🐛 Fix draft box

This commit is contained in:
2024-10-17 22:44:00 +08:00
parent 56fb92c6b9
commit 0480b5244f
2 changed files with 19 additions and 4 deletions

View File

@ -44,9 +44,12 @@ class PostProvider extends GetxController {
final queries = [
'take=${10}',
'offset=$page',
'truncate=false',
];
final client = await auth.configureClient('interactive');
final resp = await client.get('/posts/drafts?${queries.join('&')}');
final resp = await client.get(
'/posts/drafts?${queries.join('&')}',
);
if (resp.statusCode != 200) {
throw RequestException(resp);
}