🐛 Dozens of bug fixes
This commit is contained in:
@@ -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']!);
|
||||
|
@@ -110,7 +110,7 @@ Future<void> _putTokenToRemote(
|
||||
int provider,
|
||||
) async {
|
||||
await apiClient.put(
|
||||
"/notifications/subscription",
|
||||
"/pusher/notifications/subscription",
|
||||
data: {"provider": provider, "device_token": token},
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user