import type { IWebdavAccount } from '@rocket.chat/core-typings'; import { WebdavAccounts } from '@rocket.chat/models'; export async function findWebdavAccountsByUserId({ uid }: { uid: string }): Promise { return WebdavAccounts.findWithUserId(uid, { projection: { _id: 1, username: 1, serverURL: 1, name: 1, }, }).toArray(); }