Skip to content

Commit

Permalink
use merge for failure data
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Jan 26, 2024
1 parent 58646bf commit d122676
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/libs/actions/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ function createWorkspaceFromIOUPayment(iouReport: Report): string | undefined {
value: workspaceChatReportActionData,
},
{
onyxMethod: Onyx.METHOD.SET,
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.POLICY_DRAFTS}${policyID}`,
value: {
pendingFields: {
Expand All @@ -1741,7 +1741,7 @@ function createWorkspaceFromIOUPayment(iouReport: Report): string | undefined {
},
},
{
onyxMethod: Onyx.METHOD.SET,
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.POLICY_MEMBERS_DRAFTS}${policyID}`,
value: {
pendingAction: null,
Expand Down Expand Up @@ -1818,14 +1818,14 @@ function createWorkspaceFromIOUPayment(iouReport: Report): string | undefined {

const failureData: OnyxUpdate[] = [
{
onyxMethod: Onyx.METHOD.SET,
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.POLICY_MEMBERS}${policyID}`,
value: {
pendingAction: null,
},
},
{
onyxMethod: Onyx.METHOD.SET,
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${announceChatReportID}`,
value: {
pendingFields: {
Expand All @@ -1835,14 +1835,14 @@ function createWorkspaceFromIOUPayment(iouReport: Report): string | undefined {
},
},
{
onyxMethod: Onyx.METHOD.SET,
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${announceChatReportID}`,
value: {
pendingAction: null,
},
},
{
onyxMethod: Onyx.METHOD.SET,
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${adminsChatReportID}`,
value: {
pendingFields: {
Expand All @@ -1852,14 +1852,14 @@ function createWorkspaceFromIOUPayment(iouReport: Report): string | undefined {
},
},
{
onyxMethod: Onyx.METHOD.SET,
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${adminsChatReportID}`,
value: {
pendingAction: null,
},
},
{
onyxMethod: Onyx.METHOD.SET,
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${workspaceChatReportID}`,
value: {
pendingFields: {
Expand All @@ -1869,7 +1869,7 @@ function createWorkspaceFromIOUPayment(iouReport: Report): string | undefined {
},
},
{
onyxMethod: Onyx.METHOD.SET,
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${workspaceChatReportID}`,
value: {
pendingAction: null,
Expand Down

0 comments on commit d122676

Please sign in to comment.