feat: Add /sell command, enhance inventory service, and refactor student ID card generation with new constellation graphics and dynamic backgrounds.

This commit is contained in:
syntaxbullet
2025-12-12 13:41:13 +01:00
parent 209340c06e
commit 8262eb8f02
14 changed files with 179 additions and 106 deletions

View File

@@ -120,5 +120,11 @@ export const inventoryService = {
};
return tx ? await execute(tx) : await DrizzleClient.transaction(execute);
}
},
getItem: async (itemId: number) => {
return await DrizzleClient.query.items.findFirst({
where: eq(items.id, itemId),
});
},
};