blob: 16f176581cb5a7f501c12f3dcd74d9165a3b7a88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import loadSourceContent from '../../services/load_source_content';
const fileResolver = ({ fullPath: projectId }, { path: sourcePath }) => {
return loadSourceContent({ projectId, sourcePath }).then(sourceContent => ({
// eslint-disable-next-line @gitlab/require-i18n-strings
__typename: 'File',
...sourceContent,
}));
};
export default fileResolver;
|