Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating banner script in js agent #449

Merged
merged 13 commits into from
Jan 3, 2025
2 changes: 1 addition & 1 deletion backend/src/controllers/guidelog.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class GuideLogController {

const guideLog = await guidelogService.addGuideLog({ guideType, guideId, userId, completed: isCompleted });

res.status(201).json(guideLog);
res.status(200).json(guideLog);
} catch (err) {
const { statusCode, payload } = internalServerError(
"Error adding Guide Logs:",
Expand Down
2 changes: 1 addition & 1 deletion backend/src/models/Popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module.exports = (sequelize, DataTypes) => {
defaultValue: "",
},
content: {
type: DataTypes.STRING,
type: DataTypes.STRING(1024),
allowNull: false,
defaultValue: "",
},
Expand Down
2 changes: 1 addition & 1 deletion backend/src/routes/guide.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ const guideController = require("../controllers/guide.controller.js");
const router = express.Router();

router.post("/get_guides_by_url", guideController.getGuidesByUrl);
router.get("/get_incomplete_guides_by_url", guideController.getIncompleteGuidesByUrl);
router.post("/get_incomplete_guides_by_url", guideController.getIncompleteGuidesByUrl);

module.exports = router;
1 change: 1 addition & 0 deletions backend/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const statisticsRoutes = require("./routes/statistics.routes");
const app = express();

app.use(cors());
app.options('*', cors()); // this is for preflight requests
app.use(helmet());
app.use(bodyParser.json({ limit: MAX_FILE_SIZE }));
app.use(jsonErrorMiddleware);
Expand Down
1 change: 0 additions & 1 deletion frontend/helper/banner.js

This file was deleted.

1 change: 0 additions & 1 deletion frontend/helper/links.js

This file was deleted.

154 changes: 0 additions & 154 deletions frontend/helper/main.js

This file was deleted.

78 changes: 0 additions & 78 deletions frontend/helper/popup.js

This file was deleted.

1 change: 0 additions & 1 deletion frontend/helper/tour.js

This file was deleted.

Loading
Loading