Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/module-mongodb/src/replication/replication-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function checkSourceConfiguration(connectionManager: MongoManager):
const fullName = `${db.databaseName}.${CHECKPOINTS_COLLECTION}`;
throw new ServiceError(
ErrorCode.PSYNC_S1307,
`MongoDB user does not have the required ${missingCheckpointActions.map((a) => `"${a}"`).join(', ')} priviledge(s) on "${fullName}".`
`MongoDB user does not have the required ${missingCheckpointActions.map((a) => `"${a}"`).join(', ')} privilege(s) on "${fullName}".`
);
}

Expand All @@ -62,14 +62,14 @@ export async function checkSourceConfiguration(connectionManager: MongoManager):
if (!anyCollectionActions.has('collMod')) {
throw new ServiceError(
ErrorCode.PSYNC_S1307,
`MongoDB user does not have the required "collMod" priviledge on "${db.databaseName}", required for "post_images: auto_configure".`
`MongoDB user does not have the required "collMod" privilege on "${db.databaseName}", required for "post_images: auto_configure".`
);
}
}
if (!anyCollectionActions.has('listCollections')) {
throw new ServiceError(
ErrorCode.PSYNC_S1307,
`MongoDB user does not have the required "listCollections" priviledge on "${db.databaseName}".`
`MongoDB user does not have the required "listCollections" privilege on "${db.databaseName}".`
);
}
} else {
Expand Down