mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-22 12:24:02 +03:00
feat(survey): delete survey when deleting a user
This commit is contained in:
parent
d63c745ea4
commit
150ea7710f
@ -35,7 +35,9 @@ export default async ({ id }) => {
|
||||
.orWhere({ userId: id })
|
||||
.del();
|
||||
|
||||
const usage = await DB.from("usage").where("userId", id).del();
|
||||
const usage = await DB.from("usage").where({ userId: id }).del();
|
||||
|
||||
const surveys = await DB.from("surveys").where({ ownerId: id }).del();
|
||||
|
||||
const data = await DB.from("users").where({ id }).del().returning("*");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user