Skip to content

Commit

Permalink
Update ApiAuditLogsDao.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark2307 authored Oct 21, 2024
1 parent e457669 commit f184238
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public void createIndicesIfAbsent() {
String[] fieldNames = { ApiAuditLogs.TIMESTAMP };
MCollection.createIndexIfAbsent(getDBName(), getCollName(), fieldNames, true);

fieldNames = new String[]{ApiAuditLogs.USER_EMAIL, ApiAuditLogs.USER_IP_ADDRESS};
fieldNames = new String[]{ApiAuditLogs.USER_EMAIL, ApiAuditLogs.USER_IP_ADDRESS, ApiAuditLogs.TIMESTAMP};
MCollection.createIndexIfAbsent(getDBName(), getCollName(), fieldNames, true);
}

@Override
Expand Down

0 comments on commit f184238

Please sign in to comment.