Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. try {
  2. const query = 'EXEC GetForecastDailyByUserID @USERID = 133 WITH RESULT SETS (fieldId INT, date DateTime, pop DECIMAL(4,1), tMax DECIMAL(4,1), tMIN( DECIMAL(4,1), windSpd DECIMAL(4,1), icon VARCHAR(20)';
  3. const pool = await db.poolPromise;
  4. const result = await pool.query(query);
  5. return done(null, result);
  6. } catch (error) {
  7. return done([error, { UserID: UserID }, 'GetForecastDailyByUserID']);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement