fix: setup status doesn't change

This commit is contained in:
Elias Schneider
2023-02-03 11:01:10 +01:00
parent b14e931d8d
commit 064ef38d78

View File

@@ -77,9 +77,13 @@ export class ConfigService {
}
async changeSetupStatus(status: "STARTED" | "REGISTERED" | "FINISHED") {
return await this.prisma.config.update({
const updatedVariable = await this.prisma.config.update({
where: { key: "SETUP_STATUS" },
data: { value: status },
});
this.configVariables = await this.prisma.config.findMany();
return updatedVariable;
}
}