Skip to content

Commit e4e66a8

Browse files
committed
fix: renamed contentInputStream to content
Signed-off-by: Stiliyan Valkanov <stiliyan.valkanov@bearingpoint.com>
1 parent c1eabfe commit e4e66a8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/src/main/java/org/lfenergy/compas/scl/data/rest/v1/CompasPluginsResource.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,19 @@ public DataEntryWithContent getDataById(UUID id) {
7777
public UploadDataResponse uploadData(String type,
7878
String name,
7979
String contentType,
80-
InputStream contentInputStream,
80+
InputStream content,
8181
String dataCompatibilityVersion,
8282
String description,
8383
String version,
8484
String nextVersionType) {
85-
String content;
85+
String contentText;
8686
try {
87-
content = new String(contentInputStream.readAllBytes(), StandardCharsets.UTF_8);
87+
contentText = new String(content.readAllBytes(), StandardCharsets.UTF_8);
8888
} catch (IOException e) {
8989
throw new CompasInvalidInputException("Failed to read content from upload");
9090
}
9191

92-
var entity = service.upload(new UploadCustomPluginsResourceData(type, name, contentType, content,
92+
var entity = service.upload(new UploadCustomPluginsResourceData(type, name, contentType, contentText,
9393
dataCompatibilityVersion, description, version, nextVersionType));
9494

9595
var response = new UploadDataResponse();

0 commit comments

Comments
 (0)