Skip to content

Commit

Permalink
Merge pull request #8258 from jrjohnson/yup-bulk-fixup
Browse files Browse the repository at this point in the history
Fix Method Case
  • Loading branch information
stopfstedt authored Dec 6, 2024
2 parents 08d212e + f7ab55d commit 093d1f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/app/components/bulk-new-users.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default class BulkNewUsersComponent extends Component {
this.primaryCohortId = id;
}

async getExistingUserNames() {
async getExistingUsernames() {
const authentications = await this.store.findAll('authentication');
return mapBy(authentications, 'username').filter(Boolean);
}
Expand All @@ -181,7 +181,7 @@ export default class BulkNewUsersComponent extends Component {
**/
async getFileContents(file) {
this.fileUploadError = false;
const existingUsernames = await this.getExistingUserNames();
const existingUsernames = await this.getExistingUsernames();
return new Promise((resolve) => {
const allowedFileTypes = ['text/plain', 'text/csv', 'text/tab-separated-values'];
if (!allowedFileTypes.includes(file.type)) {
Expand Down

0 comments on commit 093d1f8

Please sign in to comment.