From 539f5c3af182a47d813ff7352e4eb2c9c52812f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=9Awiderski?= Date: Mon, 4 May 2026 13:23:02 +0200 Subject: [PATCH] [ACS-11628] small for for init-acs-env.ts (#11860) --- lib/cli/scripts/init-acs-env.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/cli/scripts/init-acs-env.ts b/lib/cli/scripts/init-acs-env.ts index e97d81f991..aa38024241 100755 --- a/lib/cli/scripts/init-acs-env.ts +++ b/lib/cli/scripts/init-acs-env.ts @@ -178,7 +178,7 @@ async function uploadFile(fileName: string, fileDestination: string): Promise { type: 'ALLOW_OWNER_CHANGES' }; try { - const result = new NodesApi(alfrescoJsApi).lockNode(nodeId, data); + const result = await new NodesApi(alfrescoJsApi).lockNode(nodeId, data); logger.info('File was locked'); return result; } catch (error) { - logger.error('Failed to lock file with error: ', error.stack); + logger.error('Failed to lock file with error: ', error); return null; } } @@ -215,7 +215,7 @@ async function shareFile(nodeId: string) { await new SharedlinksApi(alfrescoJsApi).createSharedLink(data); logger.info('File was shared'); } catch (error) { - logger.error('Failed to share file with error: ', error.stack); + logger.error('Failed to share file with error: ', error); } } @@ -236,7 +236,7 @@ async function favoriteFile(nodeId: string) { await new FavoritesApi(alfrescoJsApi).createFavorite('-me-', data); logger.info('File was add to favorites'); } catch (error) { - logger.error('Failed to add the file to favorites with error: ', error.stack); + logger.error('Failed to add the file to favorites with error: ', error); } }