Skip to content

Commit

Permalink
fix visits migration
Browse files Browse the repository at this point in the history
  • Loading branch information
poeti8 committed Jan 9, 2025
1 parent eb85efd commit 69473ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/migrations/20241223103044_visits_user_id.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function up(knex) {
.withKeyName("visits_user_id_foreign");
});

const [{ count }] = await knex("visits").count("'*' as count");
const [{ count }] = await knex("visits").count("* as count");

if (count < 1_000_000) {
const last_visit = await knex("visits").orderBy("id", "desc").first();
Expand Down

0 comments on commit 69473ee

Please sign in to comment.