Skip to content

Commit 61d202e

Browse files
committed
Adding missing FileExtension and CreateDate to BackendConfigurationFileModel
1 parent 0952673 commit 61d202e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

eFormAPI/Plugins/BackendConfiguration.Pn/BackendConfiguration.Pn/Infrastructure/Models/Files/BackendConfigurationFileModel.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
SOFTWARE.
2323
*/
2424

25+
using System;
26+
2527
namespace BackendConfiguration.Pn.Infrastructure.Models.Files;
2628

2729
using System.Collections.Generic;
@@ -31,8 +33,12 @@ public class BackendConfigurationFileModel
3133
{
3234
public int Id { get; set; }
3335

36+
public DateTime CreateDate { get; set; }
37+
3438
public string FileName { get; set; }
3539

40+
public string FileExtension { get; set; }
41+
3642
public List<int> Properties { get; set; }
3743
= [];
3844

eFormAPI/Plugins/BackendConfiguration.Pn/BackendConfiguration.Pn/Services/BackendConfigurationFilesService/BackendConfigurationFilesService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,9 @@ public async Task<OperationDataResult<BackendConfigurationFileModel>> GetById(in
456456
.Select(x => new BackendConfigurationFileModel
457457
{
458458
Id = x.Id,
459+
CreateDate = x.CreatedAt,
459460
FileName = x.FileName,
461+
FileExtension = x.UploadedData.Extension,
460462
Properties = x.PropertyFiles
461463
.Where(y => y.FileId == x.Id)
462464
.Where(y => y.WorkflowState != Constants.WorkflowStates.Removed)

0 commit comments

Comments
 (0)