const sheet = await doc.addSheet({sheetId: 123123354, title: `Tracking - ${new Date().toLocaleDateString()}`, headerValues: rowHeaders});
const users = await userRating.find({level: {$in: trackingLevels}}, {"sort":{"progress": -1}});
for (let user of users) {
await sheet.addRows([
{
'id': user.userId,
'Уровень': user.level,
'Прогресс': user.progress,
}
]);
}