Advertisement
the0938

Repo Create

Jan 6th, 2022
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. export const createAssetWithSensorWithPointInExistingCompany = (
  2. companyId,
  3. value
  4. ) =>
  5. AssetRepo.save((asset) =>
  6. asset
  7. .hasSensor((sensor) => sensor.hasPoint((point) => point.value(value)))
  8. .belongsToCompany((company) => company.id(companyId))
  9. );
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement