Skip to content

Commit

Permalink
Merge pull request #8475 from Expensify/stites-alwaysSendVersionNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Apr 5, 2022
2 parents 4829517 + 93d6d18 commit 27ddbdd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/Network/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import * as NetworkStore from './NetworkStore';
import * as NetworkEvents from './NetworkEvents';
import * as PersistedRequestsQueue from './PersistedRequestsQueue';
import processRequest from './processRequest';
import {version} from '../../../package.json';

// Queue for network requests so we don't lose actions done by the user while offline
let networkRequestQueue = [];
Expand Down Expand Up @@ -181,6 +182,7 @@ function post(command, data = {}, type = CONST.NETWORK.METHOD.POST, shouldUseSec
...data,
shouldRetry: lodashGet(data, 'shouldRetry', true),
canCancel: lodashGet(data, 'canCancel', true),
appversion: version,
};

// Add the request to a queue of actions to perform
Expand Down

0 comments on commit 27ddbdd

Please sign in to comment.