Change api type back

This commit is contained in:
Adria Navarro 2024-10-22 14:04:57 +02:00
parent 020927ae6c
commit e1640cccf9
3 changed files with 5 additions and 5 deletions

View File

@ -748,7 +748,7 @@ export async function duplicateApp(
const createRequestBody: CreateAppRequest = {
name: appName,
url: possibleUrl,
useTemplate: true,
useTemplate: "true",
// The app export path
file: {
path: tmpPath,

View File

@ -139,7 +139,7 @@ describe("/applications", () => {
it("creates app from template", async () => {
const app = await config.api.application.create({
name: utils.newid(),
useTemplate: true,
useTemplate: "true",
templateKey: "test",
})
expect(app._id).toBeDefined()
@ -150,7 +150,7 @@ describe("/applications", () => {
it("creates app from file", async () => {
const app = await config.api.application.create({
name: utils.newid(),
useTemplate: true,
useTemplate: "true",
fileToImport: "src/api/routes/tests/data/export.txt",
})
expect(app._id).toBeDefined()
@ -170,7 +170,7 @@ describe("/applications", () => {
it("migrates navigation settings from old apps", async () => {
const app = await config.api.application.create({
name: utils.newid(),
useTemplate: true,
useTemplate: "true",
fileToImport: "src/api/routes/tests/data/old-app.txt",
})
expect(app._id).toBeDefined()

View File

@ -95,7 +95,7 @@ describe("/templates", () => {
const app = await config.api.application.create({
name,
url,
useTemplate: true,
useTemplate: "true",
templateName: "Agency Client Portal",
templateKey: "app/agency-client-portal",
})