removed duplicate text from importHelper

This commit is contained in:
Aster Fialla
2026-02-23 15:11:10 -05:00
parent 2a2de70b46
commit 654338f88e
2 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ ih.pluralKitImport = async function (authorId, attachmentUrl= null) {
}
const aggregatedText = addedMembers.length > 0 ? `Successfully added members: ${addedMembers.join(', ')}` : `${enums.err.NO_MEMBERS_IMPORTED}`;
if (errors.length > 0) {
throw new AggregateError(errors, `${aggregatedText}\n\n${enums.err.IMPORT_ERROR}`);
throw new AggregateError(errors, aggregatedText);
}
return aggregatedText;
});