Chg: ConfigRepository.getのreturnをEntityに / Chg: setup/initilizationをのconfig操作をRepositoryに / Fix: setup/create-adminの重複チェックを解消
This commit is contained in:
@@ -3,12 +3,10 @@ import type { ConfigEntity } from "@/modules/entities/Config";
|
||||
|
||||
export class ConfigRepository extends EntityRepository<ConfigEntity> {
|
||||
async set(name: string, value: string) {
|
||||
await this.upsert({
|
||||
return await this.upsert({
|
||||
name,
|
||||
value,
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
async get(name: string, defaultValue?: string) {
|
||||
|
||||
Reference in New Issue
Block a user