From 3f0ba725b0057c510910afb6ee18c43c730c8e1f Mon Sep 17 00:00:00 2001 From: sthuray <138075787+sthuray@users.noreply.github.com> Date: Sat, 15 Jun 2024 13:10:04 -0400 Subject: [PATCH] linting fix --- ....06.15T16.51.26.create-activities-table.ts | 28 +++++++++---------- backend/typescript/models/activity.model.ts | 1 - 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/backend/typescript/migrations/2024.06.15T16.51.26.create-activities-table.ts b/backend/typescript/migrations/2024.06.15T16.51.26.create-activities-table.ts index 27151cf..efe8b25 100644 --- a/backend/typescript/migrations/2024.06.15T16.51.26.create-activities-table.ts +++ b/backend/typescript/migrations/2024.06.15T16.51.26.create-activities-table.ts @@ -5,20 +5,20 @@ import { Migration } from "../umzug"; const TABLE_NAME = "activities"; export const up: Migration = async ({ context: sequelize }) => { - await sequelize.getQueryInterface().createTable(TABLE_NAME, { - activity_id: { - type: DataType.INTEGER, - allowNull: false, - primaryKey: true, - autoIncrement: true, - }, - activity_name: { - type: DataType.STRING, - allowNull: false, - } - }); + await sequelize.getQueryInterface().createTable(TABLE_NAME, { + activity_id: { + type: DataType.INTEGER, + allowNull: false, + primaryKey: true, + autoIncrement: true, + }, + activity_name: { + type: DataType.STRING, + allowNull: false, + }, + }); }; export const down: Migration = async ({ context: sequelize }) => { - await sequelize.getQueryInterface().dropTable(TABLE_NAME); -}; \ No newline at end of file + await sequelize.getQueryInterface().dropTable(TABLE_NAME); +}; diff --git a/backend/typescript/models/activity.model.ts b/backend/typescript/models/activity.model.ts index 37d6506..2767a39 100644 --- a/backend/typescript/models/activity.model.ts +++ b/backend/typescript/models/activity.model.ts @@ -2,7 +2,6 @@ import { Column, Model, Table } from "sequelize-typescript"; @Table({ tableName: "activities" }) export default class Activities extends Model { - @Column activity_name!: string; }