mirror of
https://github.com/fergalmoran/snapp.git
synced 2025-12-22 09:41:45 +00:00
11 lines
265 B
TypeScript
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);
|
|
}
|
|
}
|