UNPKG

lean4-code-actions

Version:

Refactorings and snippets for Lean 4

8 lines (7 loc) 225 B
export const getUsers = async function ({ knex }) { const users = await knex.from('users').select('*') return users.reduce(function (accumulator, user) { accumulator[user.uid] = user return accumulator }, {}) }