diff --git a/apps/core-admin/src/controllers/participants.ts b/apps/core-admin/src/controllers/participants.ts
index 1e1237f8..009b6bfb 100644
--- a/apps/core-admin/src/controllers/participants.ts
+++ b/apps/core-admin/src/controllers/participants.ts
@@ -823,7 +823,7 @@ export const checkInParticipant = async (req: Request, res: Response) => {
const { orgId, eventId } = req?.params;
- const { checkedInAt, checkInKey } = req?.body;
+ const { checkedInAt, checkInKey, assignedKey} = req?.body;
if (!checkedInAt || !checkInKey) {
return res.status(400).json({ error: 'checkInAt and checkInKey is required' });
@@ -844,6 +844,17 @@ export const checkInParticipant = async (req: Request, res: Response) => {
},
});
+ if (assignedKey && participantAlreadyCheckedIn) {
+ const updatedParticipant = await prisma.participant.update({
+ where: {
+ id: participantAlreadyCheckedIn.id,
+ },
+ data: {
+ assignedKey: assignedKey
+ }
+ })
+ }
+
if (!participantAlreadyCheckedIn) {
return res.status(404).json({ error: 'Participant not found' });
}
diff --git a/apps/registration-admin/vite.config.ts.timestamp-1734261834064-a590afbf0f3ab.mjs b/apps/registration-admin/vite.config.ts.timestamp-1734261834064-a590afbf0f3ab.mjs
new file mode 100644
index 00000000..9c9a8ae0
--- /dev/null
+++ b/apps/registration-admin/vite.config.ts.timestamp-1734261834064-a590afbf0f3ab.mjs
@@ -0,0 +1,14 @@
+// vite.config.ts
+import { defineConfig } from "file:///F:/Midhun/Programming/techno-event-management/node_modules/.pnpm/vite@5.4.11_@types+node@22.5.0_sass@1.81.0_terser@5.36.0/node_modules/vite/dist/node/index.js";
+import react from "file:///F:/Midhun/Programming/techno-event-management/node_modules/.pnpm/@vitejs+plugin-react@4.3.3_vite@5.4.11_@types+node@22.5.0_sass@1.81.0_terser@5.36.0_/node_modules/@vitejs/plugin-react/dist/index.mjs";
+var vite_config_default = defineConfig({
+ plugins: [react()],
+ preview: {
+ host: true,
+ port: 3004
+ }
+});
+export {
+ vite_config_default as default
+};
+//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI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DMUIsU0FBUyxDQUFDLE1BQU0sQ0FBQztBQUFBLEVBQ2pCLFNBQVM7QUFBQSxJQUNQLE1BQU07QUFBQSxJQUNOLE1BQU07QUFBQSxFQUNSO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K
diff --git a/apps/web-admin/src/components/Scanner.jsx b/apps/web-admin/src/components/Scanner.jsx
index 18cd57aa..f02cfc00 100644
--- a/apps/web-admin/src/components/Scanner.jsx
+++ b/apps/web-admin/src/components/Scanner.jsx
@@ -13,7 +13,7 @@ const Scanner = ({ result, setResult }) => {
console.error(err);
};
const { ref } = useZxing({
- onDecodeResult(result) {
+ onDecodeResult(result) {
setResult(result.getText());
},
});
diff --git a/apps/web-admin/src/pages/[orgId]/events/[eventId]/participants/check-in/in/scanner/index.jsx b/apps/web-admin/src/pages/[orgId]/events/[eventId]/participants/check-in/in/scanner/index.jsx
index 6809a91d..bf1f8128 100644
--- a/apps/web-admin/src/pages/[orgId]/events/[eventId]/participants/check-in/in/scanner/index.jsx
+++ b/apps/web-admin/src/pages/[orgId]/events/[eventId]/participants/check-in/in/scanner/index.jsx
@@ -31,6 +31,7 @@ export default function CheckInParticipantWithScanner() {
{},
{
checkInKey,
+ assignedKey: null,
checkedInAt: new Date().toISOString(),
},
);
@@ -149,4 +150,4 @@ export default function CheckInParticipantWithScanner() {
);
-}
+}
\ No newline at end of file
diff --git a/apps/web-admin/src/pages/[orgId]/events/[eventId]/participants/check-in/index.jsx b/apps/web-admin/src/pages/[orgId]/events/[eventId]/participants/check-in/index.jsx
index 89875bfd..a69e8f14 100644
--- a/apps/web-admin/src/pages/[orgId]/events/[eventId]/participants/check-in/index.jsx
+++ b/apps/web-admin/src/pages/[orgId]/events/[eventId]/participants/check-in/index.jsx
@@ -61,6 +61,18 @@ export default function ParticipantsCheckIn() {
previousPage={`/${orgId}/events/${eventId}/participants`}
headerButton={
<>
+
+
+