fix: DelegationCredential - Duplicate GoogleMeet and unnecessary serviceAccount key access (#21269)
* Remove unused return statement * Fix return from fn instead of continuing the loop * Ensure userId is set for existing records on update * ensure that serviceAccountKey is only retrieved whenb assked
This commit is contained in:
1 parent
deb55c0536
commit
df75df7008
32 files changed
+196
-113
No files matched your search
@@ -1955,6 +1955,7 @@ model DelegationCredential {
|
||||
// Should be fair to assume that one domain can be only on one workspace platform at a time. So, one can't have two different workspace platforms for the same domain
|
||||
// Because we don't know which domain the organization might have, we couldn't make "domain" unique here as that would prevent an actual owner of the domain to be unable to use that domain if it is used by someone else.
|
||||
@@unique([organizationId, domain])
|
||||
@@index([enabled])
|
||||
}
|
||||
|
||||
// Deprecated and probably unused - Use DelegationCredential instead
|
||||
|
||||
Reference in new issue
Block a user