> ## Documentation Index
> Fetch the complete documentation index at: https://chart-spec.enchor.us/llms.txt
> Use this file to discover all available pages before exploring further.

# fixIssues()

```ts theme={null}
function fixIssues(song, options?): Promise<{
  report: FixReport;
  song: SongDocument;
}>;
```

Fixes the song's issues that `issueFixes` lists and returns the fixed song with a report, leaving `song` as it was.
A fix is made only where a scan reports its issue, and not for a code song.ini's `ignored_issues` lists. Save the
fixed song like any other.

## Parameters

| Parameter | Type |
| - | - |
| `song` | [`SongDocument`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/SongDocument) |
| `options?` | [`FixOptions`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/FixOptions) |

## Returns

`Promise`\<\{
`report`: [`FixReport`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/FixReport);
`song`: [`SongDocument`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/SongDocument);
}>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.