Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- 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)';
- const pool = await db.poolPromise;
- const result = await pool.query(query);
- return done(null, result);
- } catch (error) {
- return done([error, { UserID: UserID }, 'GetForecastDailyByUserID']);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement