import state from "../../store";
export default 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 };
}
//# sourceMappingURL=findUser.js.map