mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-11 10:27:01 +02:00
fix: setup status doesn't change
This commit is contained in:
@@ -77,9 +77,13 @@ export class ConfigService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async changeSetupStatus(status: "STARTED" | "REGISTERED" | "FINISHED") {
|
async changeSetupStatus(status: "STARTED" | "REGISTERED" | "FINISHED") {
|
||||||
return await this.prisma.config.update({
|
const updatedVariable = await this.prisma.config.update({
|
||||||
where: { key: "SETUP_STATUS" },
|
where: { key: "SETUP_STATUS" },
|
||||||
data: { value: status },
|
data: { value: status },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.configVariables = await this.prisma.config.findMany();
|
||||||
|
|
||||||
|
return updatedVariable;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user