Skip to content

Commit 7f5368a

Browse files
authored
Update AbstractDataEntries.jl
1 parent 7a81f52 commit 7f5368a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/DataBlobs/entities/AbstractDataEntries.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ end
3737
_fixtimezone(cts::NamedTuple) = ZonedDateTime(cts.utc_datetime*"+00")
3838

3939
# needed for deserialization from JSON during DFG v0.19 transition, see #867
40+
# TODO this function can likely be removed, since julia automatically tries type conversion on constructors.
4041
function BlobStoreEntry(;
4142
id,
4243
label,
@@ -49,15 +50,15 @@ function BlobStoreEntry(;
4950
kwargs... # drop excessive fields
5051
)
5152
#
52-
BlobStoreEntry(
53-
UUID(id),
54-
Symbol(label),
55-
Symbol(blobstore),
53+
BlobStoreEntry(;
54+
id=UUID(id),
55+
label=Symbol(label),
56+
blobstore=Symbol(blobstore),
5657
hash,
5758
origin,
5859
description,
5960
mimeType,
60-
_fixtimezone(timestamp),
61+
timestamp=_fixtimezone(timestamp),
6162
)
6263
end
6364

0 commit comments

Comments
 (0)