The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/api/server/lib/webdav.js

14 lines
289 B

import { WebdavAccounts } from '../../../models/server/raw';
export async function findWebdavAccountsByUserId({ uid }) {
return {
accounts: await WebdavAccounts.findWithUserId(uid, {
fields: {
_id: 1,
username: 1,
server_url: 1,
name: 1,
},
}).toArray(),
};
}