fix(proxy-server): add missing labels to file collections (#3250)

This commit is contained in:
Erez Rokah 2020-02-13 15:45:36 +02:00 committed by GitHub
parent 151fa90da4
commit 8d67de0e68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ export const entriesFromFiles = async (
const content = await fs.readFile(path.join(repoPath, file.path));
return {
data: content.toString(),
file: { path: normalizePath(file.path), id: sha256(content) },
file: { path: normalizePath(file.path), label: file.label, id: sha256(content) },
};
} catch (e) {
return {