🐛 Dozens of bug fixes

This commit is contained in:
2025-07-18 18:57:16 +08:00
parent e6c58b7b63
commit 3a4faac8cb
10 changed files with 48 additions and 33 deletions

View File

@@ -175,8 +175,8 @@ Completer<SnCloudFile?> _processUpload(
final client = TusClient(file);
client
.upload(
uri: Uri.parse('$baseUrl/files/tus'),
headers: {'Authorization': 'Bearer $atk'},
uri: Uri.parse('$baseUrl/drive/tus'),
headers: {'Authorization': 'AtField $atk'},
metadata: metadata,
onComplete: (lastResponse) {
final resp = jsonDecode(lastResponse!.headers['x-fileinfo']!);

View File

@@ -110,7 +110,7 @@ Future<void> _putTokenToRemote(
int provider,
) async {
await apiClient.put(
"/notifications/subscription",
"/pusher/notifications/subscription",
data: {"provider": provider, "device_token": token},
);
}