Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit 8c9cc35

Browse files
committed
fixed recipients and id of share
1 parent e50cbdd commit 8c9cc35

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

server/core/src/main/java/io/whitefox/core/services/ShareService.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
import io.whitefox.persistence.StorageManager;
77
import jakarta.enterprise.context.ApplicationScoped;
88
import java.time.Clock;
9-
import java.util.Collections;
10-
import java.util.List;
11-
import java.util.Optional;
12-
import java.util.Set;
9+
import java.util.*;
1310
import java.util.function.Function;
1411
import java.util.stream.Collectors;
1512

@@ -37,10 +34,10 @@ public Share createShare(CreateShare createShare, Principal currentUser) {
3734
.collect(Collectors.toMap(Schema::name, schema -> schema));
3835
Share share = new Share(
3936
createShare.name(),
40-
createShare.name(), // TODO
37+
UUID.randomUUID().toString(),
4138
newSchemas,
4239
createShare.comment(),
43-
Set.of(),
40+
new HashSet<>(createShare.recipients()),
4441
clock.millis(),
4542
currentUser,
4643
clock.millis(),

0 commit comments

Comments
 (0)