Skip to content

Commit

Permalink
allocate trn when there is no existing teachers (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevJoy authored Mar 11, 2024
1 parent d043e41 commit a87ec67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public async Task<CreateTeacherResult> CreateTeacher(CreateTeacherCommand comman
helper.FlagBadData(txnRequest);

var findExistingTeacherResult = await (findExistingTeacher ?? helper.FindExistingTeacher)();
var allocateTrn = findExistingTeacherResult.Length > 0;
var allocateTrn = findExistingTeacherResult.Length == 0;
string trn = null;

if (allocateTrn)
Expand Down

0 comments on commit a87ec67

Please sign in to comment.