-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from Chia-Network/feature/simulation2
feat: handle staging commit
- Loading branch information
Showing
3 changed files
with
88 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
import * as simulator from './simulator'; | ||
|
||
export const updateProjectRecord = async (uuid, record) => { | ||
await simulator.updateProjectRecord(uuid, record); | ||
export const updateProjectRecord = async (uuid, record, stagingRecordId) => { | ||
await simulator.updateProjectRecord(uuid, record, stagingRecordId); | ||
}; | ||
|
||
export const createProjectRecord = async (uuid, record) => { | ||
await simulator.createProjectRecord(uuid, record); | ||
export const createProjectRecord = async (uuid, record, stagingRecordId) => { | ||
await simulator.createProjectRecord(uuid, record, stagingRecordId); | ||
}; | ||
|
||
export const deleteProjectRecord = async (uuid) => { | ||
await simulator.deleteProjectRecord(uuid); | ||
export const deleteProjectRecord = async (uuid, stagingRecordId) => { | ||
await simulator.deleteProjectRecord(uuid, stagingRecordId); | ||
}; | ||
|
||
export const updateUnitRecord = async (uuid, record) => { | ||
await simulator.updateUnitRecord(uuid, record); | ||
export const updateUnitRecord = async (uuid, record, stagingRecordId) => { | ||
await simulator.updateUnitRecord(uuid, record, stagingRecordId); | ||
}; | ||
|
||
export const createUnitRecord = async (uuid, record) => { | ||
await simulator.createUnitRecord(uuid, record); | ||
export const createUnitRecord = async (uuid, record, stagingRecordId) => { | ||
await simulator.createUnitRecord(uuid, record, stagingRecordId); | ||
}; | ||
|
||
export const deleteUnitRecord = async (uuid) => { | ||
await simulator.deleteUnitRecord(uuid); | ||
export const deleteUnitRecord = async (uuid, stagingRecordId) => { | ||
await simulator.deleteUnitRecord(uuid, stagingRecordId); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters