Skip to content

Commit

Permalink
fix: missing save in migration (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustSamuel authored Sep 30, 2024
1 parent 773c605 commit a73b011
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/migrations/1726689003147-ldap-objectguid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ export class LDAPObjectGUID1726689003147 implements MigrationInterface {
const newObjectGUID = newGUIDMap.get(dn);
if (!newObjectGUID) throw new Error(`Could not find new objectGUID for ${dn}`);

console.error(auth.UUID, newObjectGUID);
auth.UUID = newObjectGUID;
await auth.save();

membersToFix.delete(auth.userId);
otherToFix.delete(auth.userId);
}
Expand Down

0 comments on commit a73b011

Please sign in to comment.