Files
snapp/src/lib/db/settings/get.ts
2024-02-10 17:13:46 +01:00

11 lines
265 B
TypeScript

import type { Database } from '..';
const settingsHash = 'settings:global';
export default async function getSettings(this: Database, id: string, hash = settingsHash) {
try {
return await this.redis.hGet(hash, id);
} catch (error) {
console.log(error);
}
}