fix: collection creation & overview hover styles
This commit is contained in:
@@ -20,6 +20,5 @@ export default defineEventHandler(async (h3) => {
|
||||
if (!gameId)
|
||||
throw createError({ statusCode: 400, statusMessage: "Game ID required" });
|
||||
|
||||
await userLibraryManager.collectionAdd(gameId, id, userId);
|
||||
return;
|
||||
return await userLibraryManager.collectionAdd(gameId, id, userId);
|
||||
});
|
||||
|
||||
@@ -78,7 +78,7 @@ class UserLibraryManager {
|
||||
}
|
||||
|
||||
async collectionAdd(gameId: string, collectionId: string, userId: string) {
|
||||
await prisma.collectionEntry.upsert({
|
||||
return await prisma.collectionEntry.upsert({
|
||||
where: {
|
||||
collectionId_gameId: {
|
||||
collectionId,
|
||||
@@ -93,6 +93,9 @@ class UserLibraryManager {
|
||||
gameId,
|
||||
},
|
||||
update: {},
|
||||
include: {
|
||||
game: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user