mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-09 09:31:13 +00:00
refactor(backblaze): Move milliseconds since epoch to the beginning of bucket name
This commit is contained in:
parent
f977193fae
commit
f6ded5399c
|
@ -64,7 +64,7 @@ class BackupsCubit extends ServerInstallationDependendCubit<BackupsState> {
|
||||||
.replaceAll(RegExp(r'[^a-zA-Z0-9]'), '-');
|
.replaceAll(RegExp(r'[^a-zA-Z0-9]'), '-');
|
||||||
final int serverId = serverInstallationCubit.state.serverDetails!.id;
|
final int serverId = serverInstallationCubit.state.serverDetails!.id;
|
||||||
String bucketName =
|
String bucketName =
|
||||||
'$domain-$serverId-${DateTime.now().millisecondsSinceEpoch}';
|
'${DateTime.now().millisecondsSinceEpoch}-$serverId-$domain';
|
||||||
if (bucketName.length > 49) {
|
if (bucketName.length > 49) {
|
||||||
bucketName = bucketName.substring(0, 49);
|
bucketName = bucketName.substring(0, 49);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue