This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
const https = require('https'); | |
const AWS = require('aws-sdk'); | |
var wd = new AWS.WorkDocs(); | |
async function downloadFolder(folderName, folderId) { | |
let limit = 100; | |
console.log('Start Download folder:', folderId); | |
if (!fs.existsSync(folderName)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with | |
time_frame as ( | |
select current_date - 14 | |
), | |
population as ( | |
select created_at::date as cohort_date, id as unique_id | |
from organizations | |
where created_at > (select * from time_frame) |