We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2ae3e3 commit 7bd00c6Copy full SHA for 7bd00c6
components/server/src/authorization/relationship-updater.ts
@@ -87,6 +87,13 @@ export class RelationshipUpdater {
87
log.info({ userId: user.id }, `Finished updating relationships.`, {
88
duration: new Date().getTime() - before,
89
});
90
+
91
+ // let's double check the migration worked.
92
+ if (!(await this.isMigrated(user))) {
93
+ log.error({ userId: user.id }, `User migration failed.`, {
94
+ markedMigrated: user.additionalData?.fgaRelationshipsVersion === RelationshipUpdater.version,
95
+ });
96
+ }
97
return user;
98
99
} finally {
0 commit comments