mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
feat(server, builder): allow string indexes
This commit is contained in:
@@ -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: {},
|
||||
});
|
||||
});
|
||||
|
||||
@@ -191,6 +191,6 @@ export type UserData = {
|
||||
};
|
||||
|
||||
export type TutorialStepData = {
|
||||
step: number;
|
||||
step: string;
|
||||
data: { [key: string]: any };
|
||||
};
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "AnalyticsDetails" ALTER COLUMN "dataIndex" SET DATA TYPE TEXT;
|
||||
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user