22 lines
448 B
TypeScript
Executable File
22 lines
448 B
TypeScript
Executable File
import { Injectable } from '@nestjs/common';
|
|
import {
|
|
db,
|
|
ObjectType,
|
|
Prisma,
|
|
} from '@nice/common';
|
|
|
|
|
|
import { BaseService } from '../base/base.service';
|
|
import { deleteByPattern } from '@server/utils/redis/utils';
|
|
|
|
@Injectable()
|
|
export class AppConfigService extends BaseService<Prisma.AppConfigDelegate> {
|
|
constructor() {
|
|
super(db, "appConfig");
|
|
}
|
|
async clearRowCache() {
|
|
await deleteByPattern("row-*")
|
|
return true
|
|
}
|
|
}
|