unoffical wafrn mirror
wafrn.net
atproto
social-network
activitypub
1import { UserOptions } from '../../models/index.js'
2import { redisCache } from '../redis.js'
3
4async function getUserOptions(userId: string): Promise<Array<{ optionName: string; optionValue: string }>> {
5 const dbReply = await UserOptions.findAll({
6 where: {
7 userId: userId
8 }
9 })
10 return dbReply.map((elem: any) => elem.dataValues)
11}
12
13export { getUserOptions }