un-verify in buildings table too
This commit is contained in:
parent
63c190c981
commit
7a0228bed1
@ -106,6 +106,15 @@ export async function removeBuildingUserVerifiedAttribute(buildingId: number, us
|
||||
`,
|
||||
[buildingId, userId, attribute]
|
||||
);
|
||||
if (attribute == 'current_landuse_group'){
|
||||
await (db).none(
|
||||
`UPDATE buildings
|
||||
SET current_landuse_verified = FALSE
|
||||
WHERE buildings.building_id = $1;"
|
||||
`,
|
||||
[buildingId]
|
||||
);
|
||||
}
|
||||
} catch(error) {
|
||||
throw new DatabaseError(error.detail);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user