Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "arminm"

Hi, Perhaps someone can tell me why this would occur.

The CreatorUserId on Update is getting set as NULL, which previously wasn't the case. So I've put in a little bit of a workaround:

private async Task Update(CreateOrEditGroupDto input)
         {
            var group = await _groupRepository.FirstOrDefaultAsync((int)input.Id);
            var x = ObjectMapper.Map(input, group);
            
            // replace creatoruserid hack because it's gone missing
            x.CreatorUserId = AbpSession.UserId;
            await _groupRepository.UpdateAsync(x);
        }

The Create works fine still.

So it's not critical as the workaround is in place, however, I was just wondering if someone had seen this before and perhaps let me know where I have borked it.

Thanks for looking

Showing 1 to 1 of 1 entries