Skip to content

Commit

Permalink
Xero mapping stat fix (#726)
Browse files Browse the repository at this point in the history
mapping state fix
  • Loading branch information
DhaaraniCIT authored Apr 3, 2024
1 parent c536593 commit 5ab2d48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/core/services/common/mapping.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ export class MappingService {
getMappingStats(sourceType: string, destinationType: string, appName: AppName): Observable<MappingStats> {
const workspaceId = this.workspaceService.getWorkspaceId();
let appNameCaps = null;
if (appName === AppName.INTACCT || appName === AppName.XERO) {
appNameCaps = appName.toUpperCase();
if (appName === AppName.INTACCT) {
appNameCaps = AppUrl.INTACCT.toUpperCase();
} else if (appName === AppName.XERO) {
appNameCaps = AppUrl.XERO.toUpperCase();
}
return this.apiService.get(`/workspaces/${workspaceId}/mappings/stats/`, {
source_type: sourceType,
Expand Down

0 comments on commit 5ab2d48

Please sign in to comment.