🐛 Fix file reference created with wrong date

This commit is contained in:
2025-12-02 21:03:57 +08:00
parent 2cce5ebf80
commit fa2f53ff7a
5 changed files with 8 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ public static class SoftDeleteExtension
var method = typeof(SoftDeleteExtension)
.GetMethod(nameof(SetSoftDeleteFilter), BindingFlags.NonPublic | BindingFlags.Static)!
.MakeGenericMethod(entityType.ClrType);
method.Invoke(null, new object[] { modelBuilder });
method.Invoke(null, [modelBuilder]);
}
}

View File

@@ -129,7 +129,7 @@ public class SnCloudFileReference : ModelBase
/// <returns>The protobuf message representation of this object</returns>
public CloudFileReference ToProtoValue()
{
return new Proto.CloudFileReference
return new CloudFileReference
{
Id = Id.ToString(),
FileId = FileId,