if (tx.location === 'server') {
// `tx` is now narrowed to `ServerTransaction`.
// Do special server-only stuff with raw SQL.
await tx.dbTransaction.query(
`
UPDATE notification
SET read = true
WHERE user_id = $1
`,
[userId]
)
}
}
)
The actual things that I now swear by and actually help is consistent sleep of whatever hours that doesn't make you feel sleepy in the day/night (depending on shift) since actual consistency matters more then timing and also in case of workouts really balancing the fatigue to intensity ratio. I understood this late and thought one should always push hard but there needs to be a balance. It's kind of like how cheetah can run really fast but only for 20-30 seconds and then it needs a 30 minute reset period or something. So if you go to failure or always at very high intensity it affects later sets and increases recovery period and in a way driving down overall weekly sets/volume which is main hypertrophy factor.