From 1ec15cf0ebadc94d41cf5cdab1d0282f66bb1221 Mon Sep 17 00:00:00 2001 From: Weiko Date: Fri, 30 Aug 2024 19:06:47 +0200 Subject: [PATCH] fix naming --- .../0-24-set-custom-object-is-soft-deletable.command.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-24/0-24-set-custom-object-is-soft-deletable.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-24/0-24-set-custom-object-is-soft-deletable.command.ts index e96e5842d51a..a27a3cc144eb 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-24/0-24-set-custom-object-is-soft-deletable.command.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version/0-24/0-24-set-custom-object-is-soft-deletable.command.ts @@ -39,13 +39,13 @@ export class SetCustomObjectIsSoftDeletableCommand extends ActiveWorkspacesComma }; if (options.dryRun) { - const entitiesToUpdate = await this.objectMetadataRepository.find({ + const objectsToUpdate = await this.objectMetadataRepository.find({ select: ['id'], where: updateCriteria, }); this.logger.log( - `Dry run: ${entitiesToUpdate.length} entities would be updated`, + `Dry run: ${objectsToUpdate.length} objects would be updated`, ); return; @@ -55,6 +55,6 @@ export class SetCustomObjectIsSoftDeletableCommand extends ActiveWorkspacesComma isSoftDeletable: true, }); - this.logger.log(`Updated ${result.affected} entities`); + this.logger.log(`Updated ${result.affected} objects`); } }