External module "lib/sync/syncData"
Functions
Const bulkSyncData
- bulkSyncData(wfx: Record<string, string>, model: any, jobName: string, callback: any, foreignTable?: any, foreignPK?: undefined | string): Promise<object>
-
Parameters
-
wfx: Record<string, string>
-
model: any
-
jobName: string
-
callback: any
-
Optional foreignTable: any
-
Optional foreignPK: undefined | string
Returns Promise<object>
Const syncData
- syncData(wfx: Record<string, string>, model: any, jobName: string, callback: any, foreignTable?: any, foreignPK?: undefined | string): Promise<object>
-
Parameters
-
wfx: Record<string, string>
-
model: any
-
jobName: string
-
callback: any
-
Optional foreignTable: any
-
Optional foreignPK: undefined | string
Returns Promise<object>
Sync bulk data between WFX and W2PS. The reason why we sync data as a bulk is because to follow WFX logic.