secure mongo url on error print

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-08-27 12:52:49 +03:00
parent 1f47d019e5
commit 69f48b83c4

View File

@ -9,7 +9,7 @@ if (
!process.env.COMMAND ||
!process.env.ARGUMENT
) {
throw new Error(`process.env.MONGO_URL ${process.env.MONGO_URL}
throw new Error(`process.env.MONGO_URL ${process.env.MONGO_URL?.replace(/./ig, '*')}
process.env.DB_NAME ${process.env.DB_NAME}
process.env.COLLECTION_NAME ${process.env.COLLECTION_NAME}
process.env.COMMAND ${process.env.COMMAND}