Skip to content

Commit

Permalink
Merge pull request #287 from FlowFuse/auto-snapshot-user
Browse files Browse the repository at this point in the history
Add user to flow storage
  • Loading branch information
knolleary authored Dec 5, 2024
2 parents fb7f034 + bce9b71 commit 72b8105
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/storage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ module.exports = {
getFlows: async () => {
return this._client.get('flows').json()
},
saveFlows: async (flow) => {
saveFlows: async (flow, user) => {
return this._client.post('flows', {
headers: {
'ff-user': user?.userId
},
json: flow,
responseType: 'json'
})
Expand Down

0 comments on commit 72b8105

Please sign in to comment.