feat(server, builder): allow string indexes

This commit is contained in:
Nicholas Tindle
2024-09-10 12:44:49 -05:00
parent 212b04c1f4
commit 8cb3dd712d
4 changed files with 6 additions and 5 deletions

View File

@@ -494,13 +494,12 @@ export const startTutorial = (
localStorage.setItem("shepherd-tour", "completed"); // Optionally mark the tutorial as completed
});
for (let index = 0; index < tour.steps.length; index++) {
const step = tour.steps[index];
for (const step of tour.steps) {
step.on("complete", () => {
console.log("sendTutorialStep");
sendTutorialStep({
step: index,
step: step.id,
data: {},
});
});

View File

@@ -191,6 +191,6 @@ export type UserData = {
};
export type TutorialStepData = {
step: number;
step: string;
data: { [key: string]: any };
};

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "AnalyticsDetails" ALTER COLUMN "dataIndex" SET DATA TYPE TEXT;

View File

@@ -230,7 +230,7 @@ model AnalyticsDetails {
data Json?
// Indexable field for any count based analytically measures like page order clicking, tutorial step completion, etc.
dataIndex Int?
dataIndex String?
@@index([userId, type], name: "analyticsDetails")
@@index([type])