diff options
| author | Fuwn <[email protected]> | 2024-10-06 05:59:29 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-06 05:59:59 -0700 |
| commit | 5dc4e7b5ce84f804601053cf5c0d7c1494fbd0f2 (patch) | |
| tree | 521fd2de86baabf2c4e22dcd4d220d78c197d95d /src/graphql/user/resolvers.ts | |
| parent | feat(user): live update for mutations (diff) | |
| download | due.moe-5dc4e7b5ce84f804601053cf5c0d7c1494fbd0f2.tar.xz due.moe-5dc4e7b5ce84f804601053cf5c0d7c1494fbd0f2.zip | |
feat(badges): return user for badge mutations
Diffstat (limited to 'src/graphql/user/resolvers.ts')
| -rw-r--r-- | src/graphql/user/resolvers.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/graphql/user/resolvers.ts b/src/graphql/user/resolvers.ts index 3521f1a2..422d9170 100644 --- a/src/graphql/user/resolvers.ts +++ b/src/graphql/user/resolvers.ts @@ -43,7 +43,11 @@ const authenticatedBadgesOperation = async ( operation(identity, authorised); - return await getUserBadges(identity.id); + return { + id: identity.id, + badges: await getUserBadges(identity.id), + preferences: {} + } }; const authenticatedPreferencesOperation = async ( |