fix(dbfs): generate thumbnail blob should not update file modification date

pull/2760/head
Aaron Liu 2025-08-10 09:38:27 +08:00
parent 4c976b8627
commit 4c08644b05
1 changed files with 1 additions and 1 deletions

View File

@ -907,7 +907,7 @@ func (f *fileClient) CreateEntity(ctx context.Context, file *ent.File, args *Ent
diff := map[int]int64{file.OwnerID: created.Size}
if err := f.client.File.UpdateOne(file).AddEntities(created).Exec(ctx); err != nil {
if err := f.client.Entity.UpdateOne(created).AddFile(file).Exec(ctx); err != nil {
return nil, diff, fmt.Errorf("failed to add file entity: %v", err)
}