Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
bchu1 committed Apr 29, 2024
1 parent 9cbf1cb commit 11f9a2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions json-schemas/validateUsersCanDeleteObjects.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"type": "object",
"properties": {
"validIds": {
"type": "array",
"items": {
"type": "number"
}
},
"validIdsStrings": {
"type": "array",
"items": {
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export const ValidateUserCanDeleteObjectsResolver = async (
context,
});
return {
validIds: res.validIds.map((id: number) => id.toString()),
validIds: res.validIds,
validIdsStrings: res.validIds.map((id: number) => id.toString()),
...res,
};
};

0 comments on commit 11f9a2e

Please sign in to comment.