import { s as state } from './store-838a3050.js';

async function findUser(db, id) {
  const data = await db.find("users", id);
  state.users = { ...state.users, [id]: data };
  if (!data)
    return null;
  return { ...data, id };
}

export { findUser as f };
