Browse Source

index: also send `file` upon `/create` to fix re-syncs

master
Guillermo Rauch 9 years ago
parent
commit
d32c522144
  1. 5
      lib/index.js

5
lib/index.js

@ -52,10 +52,11 @@ export default class Now extends EventEmitter {
method: 'POST',
body: {
forceNew,
files: Array.from(this._files).map(([sha, { data }]) => {
files: Array.from(this._files).map(([sha, { data, name }]) => {
return {
sha,
size: Buffer.byteLength(data)
size: Buffer.byteLength(data),
file: toRelative(name, this._path),
};
})
}

Loading…
Cancel
Save