Ends in:
7 DAYS
18 HRS
20 MIN
29 SEC
Ends in:
7 D
18 H
20 M
29 S

Activities of "shingolin"

I try to use background job to excute some domain service about create / update And data is succeed to create / update to database But, I found that the record without CreatorId / LastModifiierId After debug I'm understand it because without currentuser via backgroud job So I try to manually set to entity It work for create ,but fail in update It will be set to null when currentuser id have no value

Is these any other solution for me?

  • ABP Framework version: v7.1.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
public class AttendEmployeeRoteScheduleBackgroundJob : AsyncBackgroundJob<AttendEmployeeRoteScheduleGenerateConditionDto>, ITransientDependency
{
    private readonly AttendEmployeeRoteScheduleDomainService attendEmployeeRoteSchedulesAppService;
    
    public AttendEmployeeRoteScheduleBackgroundJob(AttendEmployeeRoteScheduleDomainService attendEmployeeRoteSchedulesAppService)
    {
    this.attendEmployeeRoteSchedulesAppService = attendEmployeeRoteSchedulesAppService;
    }
    
    public override Task ExecuteAsync(AttendEmployeeRoteScheduleGenerateConditionDto args)
    {
    return attendEmployeeRoteSchedulesAppService.GenerateAsync(args);
    }
}
Showing 1 to 1 of 1 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06