'use strict';
import { getQuery } from '../../../meta/server/web/drizzle.js';
import { applyFilterToQuery, getTableColumn } from '../../../db/drizzle-queries.js';
import { getDbSchema } from '../../../db/db-schema.js';
import { eq } from 'drizzle-orm';
import { schemaNames, columnNames } from '../../../db/constants/schema-names.js';

var __defProp=Object['defineProperty'],__name=(_0x598d9d,_0x2d3cc7)=>__defProp(_0x598d9d,'name',{'value':_0x2d3cc7,'configurable':!![]});async function getFriendsByPersonId(_0x314093){const _0x589eb8=getDbSchema(),_0x32fec9=_0x589eb8[schemaNames['friendSchema']],{query:_0x2a3de3}=await getQuery(_0x32fec9);return applyFilterToQuery(_0x2a3de3,eq(getTableColumn(_0x32fec9,columnNames['personId']),_0x314093)),_0x2a3de3;}__name(getFriendsByPersonId,'getFriendsByPersonId');

export { getFriendsByPersonId };
