Strictly type encryption rotation key site maps constants through entity type derivation (#21085)
# Introduction Followup https://github.com/twentyhq/twenty/pull/21001 Now that the typeorm entities provide grains over their `encryptedString` value, we can strictly type the sitemaps of the encrypted string to rotate in case of encryption key rotation and also the integration tests tests cases
This commit is contained in:
+1
-1
@@ -104,8 +104,8 @@ export class WorkspaceScopedRepository<T extends WorkspaceScopedEntity> {
|
||||
): Promise<number | null> {
|
||||
this.assertWorkspaceId(workspaceId);
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
return this.repository.maximum(
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
columnName as any,
|
||||
where
|
||||
? this.mergeWorkspaceIdIntoCriteria(workspaceId, where)
|
||||
|
||||
Reference in New Issue
Block a user