Skip to content
Snippets Groups Projects
Commit 2d407883 authored by Grigor Malo's avatar Grigor Malo
Browse files

fix(models): return array of ids when deleting users

parent 08f10940
No related branches found
No related tags found
3 merge requests!52Docx,!25Delete user identities,!17Graphql api
......@@ -298,7 +298,7 @@ class BaseModel extends PubsweetBaseModel {
throw new Error(`id ${delta} not found`)
}
return result.length
return result.map(u => u.id)
},
{
trx,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment