refactor: convert /backend to ESM

This commit is contained in:
Dragory 2024-04-09 20:57:18 +03:00
parent 31d74c05aa
commit 5772e27cda
No known key found for this signature in database
766 changed files with 3473 additions and 3500 deletions

View file

@ -1,5 +1,5 @@
import { MigrationInterface, QueryRunner } from "typeorm";
import { TableForeignKey } from "typeorm/index";
import { TableForeignKey } from "typeorm";
export class AddCaseNotesForeignKey1596994103885 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {

View file

@ -1,5 +1,5 @@
import { MigrationInterface, QueryRunner } from "typeorm";
import { TableColumn } from "typeorm/index";
import { TableColumn } from "typeorm";
export class AddLogMessageIdToCases1597015567215 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {

View file

@ -1,5 +1,5 @@
import { MigrationInterface, QueryRunner } from "typeorm";
import { Table } from "typeorm/index";
import { Table } from "typeorm";
export class CreateMemberTimezonesTable1597109357201 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {

View file

@ -1,5 +1,5 @@
import { MigrationInterface, QueryRunner } from "typeorm";
import { decrypt, encrypt } from "../utils/crypt";
import { decrypt, encrypt } from "../utils/crypt.js";
export class EncryptExistingMessages1600283341726 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {

View file

@ -1,5 +1,5 @@
import { MigrationInterface, QueryRunner } from "typeorm";
import { decrypt, encrypt } from "../utils/crypt";
import { decrypt, encrypt } from "../utils/crypt.js";
export class EncryptArchives1600285077890 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {

View file

@ -1,5 +1,5 @@
import { MigrationInterface, QueryRunner, TableColumn, TableIndex } from "typeorm";
import { TableForeignKey } from "typeorm/index";
import { TableForeignKey } from "typeorm";
export class UpdateCounterTriggers1617363975046 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {