clean not found file - add logs (#12198)
This commit is contained in:
@ -86,6 +86,8 @@ export class CleanNotFoundFilesCommand extends ActiveOrSuspendedWorkspacesMigrat
|
|||||||
|
|
||||||
if (!isNonEmptyString(workspace.logo)) return;
|
if (!isNonEmptyString(workspace.logo)) return;
|
||||||
|
|
||||||
|
this.logger.log('Processing workspace logo for workspace', workspace.id);
|
||||||
|
|
||||||
const isFileFound = await this.checkIfFileIsFound(
|
const isFileFound = await this.checkIfFileIsFound(
|
||||||
workspace.logo,
|
workspace.logo,
|
||||||
workspace.id,
|
workspace.id,
|
||||||
@ -122,6 +124,7 @@ export class CleanNotFoundFilesCommand extends ActiveOrSuspendedWorkspacesMigrat
|
|||||||
|
|
||||||
const attachmentIdsToSoftDeleteChunk = await Promise.all(
|
const attachmentIdsToSoftDeleteChunk = await Promise.all(
|
||||||
attachmentsChunk.map(async (attachment) => {
|
attachmentsChunk.map(async (attachment) => {
|
||||||
|
this.logger.log('Processing attachment', attachment.id);
|
||||||
const isFileFound = await this.checkIfFileIsFound(
|
const isFileFound = await this.checkIfFileIsFound(
|
||||||
attachment.fullPath,
|
attachment.fullPath,
|
||||||
workspaceId,
|
workspaceId,
|
||||||
@ -164,6 +167,8 @@ export class CleanNotFoundFilesCommand extends ActiveOrSuspendedWorkspacesMigrat
|
|||||||
const workspaceMemberIdsToUpdate: string[] = [];
|
const workspaceMemberIdsToUpdate: string[] = [];
|
||||||
|
|
||||||
for (const workspaceMember of workspaceMembers) {
|
for (const workspaceMember of workspaceMembers) {
|
||||||
|
this.logger.log('Processing workspaceMember', workspaceMember.id);
|
||||||
|
|
||||||
const isFileFound = await this.checkIfFileIsFound(
|
const isFileFound = await this.checkIfFileIsFound(
|
||||||
workspaceMember.avatarUrl,
|
workspaceMember.avatarUrl,
|
||||||
workspaceId,
|
workspaceId,
|
||||||
@ -201,6 +206,8 @@ export class CleanNotFoundFilesCommand extends ActiveOrSuspendedWorkspacesMigrat
|
|||||||
const personIdsToUpdate: string[] = [];
|
const personIdsToUpdate: string[] = [];
|
||||||
|
|
||||||
for (const person of people) {
|
for (const person of people) {
|
||||||
|
this.logger.log('Processing person', person.id);
|
||||||
|
|
||||||
const isFileFound = await this.checkIfFileIsFound(
|
const isFileFound = await this.checkIfFileIsFound(
|
||||||
person.avatarUrl,
|
person.avatarUrl,
|
||||||
workspaceId,
|
workspaceId,
|
||||||
|
|||||||
Reference in New Issue
Block a user