Guest User

Untitled

a guest
Nov 21st, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. import { DataSourceConstructor} from '@loopback/repository';
  2.  
  3. export const db = new DataSourceConstructor({
  4. connector: 'mssql',
  5. host: '192.168.1.110',
  6. port: 1433,
  7. database: 'FastDryNew',
  8. password: 'sa$123',
  9. user: 'sa',
  10. });
  11.  
  12. @get('/Job/{CustomerID}')
  13. @param.path.number('CustomerID')
  14. async findJobByCustomerID(CustomerID: number): Promise<Jobs[]> {
  15. return await this.JobsRepo.find({ where: { CustomerID: CustomerID } });
  16. }
Add Comment
Please, Sign In to add comment