Skip to content

Commit

Permalink
fix(vercel): github store write header error
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming committed Feb 13, 2021
1 parent 9e52fc2 commit dd41f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/service/storage/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ module.exports = class extends Base {
async save(tableName, data, sha) {
const filename = path.join(this.basePath, tableName + '.csv');
const csv = await writeToString(data, {
headers: CSV_HEADERS[tableName],
headers: sha ? true : CSV_HEADERS[tableName],
writeHeaders: true
});
return this.git.set(filename, csv, {sha});
Expand Down

0 comments on commit dd41f52

Please sign in to comment.