Skip to content

Commit 72b8105

Browse files
authored
Merge pull request #287 from FlowFuse/auto-snapshot-user
Add user to flow storage
2 parents fb7f034 + bce9b71 commit 72b8105

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/storage/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ module.exports = {
3333
getFlows: async () => {
3434
return this._client.get('flows').json()
3535
},
36-
saveFlows: async (flow) => {
36+
saveFlows: async (flow, user) => {
3737
return this._client.post('flows', {
38+
headers: {
39+
'ff-user': user?.userId
40+
},
3841
json: flow,
3942
responseType: 'json'
4043
})

0 commit comments

Comments
 (0)