diff --git a/backend/models/user/accountRole.model.ts b/backend/models/user/accountRole.model.ts index d4a401e..9828480 100644 --- a/backend/models/user/accountRole.model.ts +++ b/backend/models/user/accountRole.model.ts @@ -12,9 +12,6 @@ export class AccountRole extends Model { @Column privilegeAdminPanel: boolean - @Column - privilegeFileAccess: boolean - // Relations @HasMany(() => Account) diff --git a/backend/routes/band.routes.ts b/backend/routes/band.routes.ts index 46c0367..cc8a8a7 100644 --- a/backend/routes/band.routes.ts +++ b/backend/routes/band.routes.ts @@ -103,7 +103,7 @@ band.get("/", (req: Request, res: Response) => { /** * Get all information about one band */ -band.get("/:name", (req: Request, res: Response) => { +band.get("/band/:name", (req: Request, res: Response) => { Band.findOne({ where: { name: { [Op.like]: req.params.name } @@ -166,6 +166,8 @@ band.get("/:name", (req: Request, res: Response) => { */ band.get("/search", async (req: Request, res: Response) => { // Workaround, because SQLite can't handle stacked queries + console.log(1) + console.log(req.query.value) let prompts = decodeURI(String(req.query.value)).split(";") // On stacked prompts, execute last prompt diff --git a/backend/swagger.json b/backend/swagger.json index 99b6ead..693f003 100644 --- a/backend/swagger.json +++ b/backend/swagger.json @@ -679,8 +679,7 @@ "id": 1, "name": "User", "privilegeBuy": true, - "privilegeAdminPanel": false, - "privilegeFileAccess": null + "privilegeAdminPanel": false }, "payments": [ { @@ -759,8 +758,8 @@ } }, "example": { - "username": "artists", - "password": 41 + "name": "artists", + "description": 41 } }, "file": { diff --git a/misc/database.drawio b/misc/database.drawio index e70c9a1..1fc17f4 100644 --- a/misc/database.drawio +++ b/misc/database.drawio @@ -1,10 +1,10 @@ - + - + - + @@ -206,7 +206,7 @@ - + @@ -578,7 +578,7 @@ - + @@ -780,22 +780,22 @@ - + - + - + - + - + - + @@ -805,17 +805,17 @@ - + - + - + @@ -825,35 +825,35 @@ - + - + - + - + - + - + - + - + - + @@ -863,23 +863,23 @@ - + - + - + - + - + @@ -889,16 +889,1437 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/stores/search.store.ts b/src/stores/search.store.ts index aecc307..d3f9710 100644 --- a/src/stores/search.store.ts +++ b/src/stores/search.store.ts @@ -49,7 +49,7 @@ export const useSearchStore = defineStore("searchStore", { // Check for exercise solution - if (result.data.length != 0) { + if (this.searchTerm.toUpperCase().includes("SELECT")) { // Exercise 2.1 if (result.data[0].type != undefined && result.data[0].type == "table") { exerciseStore.solveExercise(2, 1) @@ -92,6 +92,7 @@ export const useSearchStore = defineStore("searchStore", { } else { + // Normal behaviour this.bands = result.data } })