Skip to content

Commit cd55a99

Browse files
yhabteabjulianbrost
authored andcommitted
Fix objects name & url aren't set at daemon startup
1 parent c5d72b9 commit cd55a99

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

internal/object/db_types.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,14 @@ func LoadFromDB(ctx context.Context, db *icingadb.DB, id types.Binary) (*Object,
7575
extraTags[extraTag.Tag] = extraTag.Value
7676
}
7777

78-
obj := &Object{db: db, ID: id, Tags: tags, ExtraTags: extraTags}
78+
obj := &Object{
79+
db: db,
80+
ID: id,
81+
Name: objectRow.Name,
82+
URL: objectRow.URL.String,
83+
Tags: tags,
84+
ExtraTags: extraTags,
85+
}
7986
cache[id.String()] = obj
8087

8188
return obj, nil

0 commit comments

Comments
 (0)