remove backend verification field change
This commit is contained in:
parent
14129abb92
commit
fff8a1bc92
@ -74,15 +74,6 @@ export async function updateBuildingUserVerifiedAttribute(buildingId: number, us
|
||||
[buildingId, userId, attribute, value]
|
||||
);
|
||||
}
|
||||
if (attribute == 'current_landuse_group'){
|
||||
await (db).none(
|
||||
`UPDATE buildings
|
||||
SET current_landuse_verified = TRUE
|
||||
WHERE buildings.building_id = $1;
|
||||
`,
|
||||
[buildingId]
|
||||
);
|
||||
}
|
||||
} catch(error) {
|
||||
console.error(error)
|
||||
if(error.detail?.includes('already exists')) {
|
||||
@ -96,15 +87,6 @@ export async function updateBuildingUserVerifiedAttribute(buildingId: number, us
|
||||
|
||||
export async function removeBuildingUserVerifiedAttribute(buildingId: number, userId: string, attribute: string) : Promise<null> {
|
||||
try {
|
||||
if (attribute == 'current_landuse_group'){
|
||||
await (db).none(
|
||||
`UPDATE buildings
|
||||
SET current_landuse_verified = FALSE
|
||||
WHERE buildings.building_id = $1;
|
||||
`,
|
||||
[buildingId]
|
||||
);
|
||||
}
|
||||
return await (db).none(
|
||||
`DELETE FROM
|
||||
building_verification
|
||||
|
Loading…
Reference in New Issue
Block a user