1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-06-30 06:30:11 +02:00

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
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C

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;
}
}