@things-factory/board-test 5.0.7 → 6.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-server/index.js +2 -15
- package/dist-server/index.js.map +1 -1
- package/dist-server/migrations/1558006505982-SeedGroup.js +6 -7
- package/dist-server/migrations/1558006505982-SeedGroup.js.map +1 -1
- package/dist-server/migrations/1558006512362-SeedBoard.js +8 -9
- package/dist-server/migrations/1558006512362-SeedBoard.js.map +1 -1
- package/dist-server/migrations/1558009487900-SeedPlayGroup.js +7 -8
- package/dist-server/migrations/1558009487900-SeedPlayGroup.js.map +1 -1
- package/dist-server/migrations/1563869152824-TestLabels.js +8 -9
- package/dist-server/migrations/1563869152824-TestLabels.js.map +1 -1
- package/dist-server/migrations/1564039750397-SampleBoards.js +13 -14
- package/dist-server/migrations/1564039750397-SampleBoards.js.map +1 -1
- package/dist-server/migrations/1564139332891-SampleFonts.js +6 -7
- package/dist-server/migrations/1564139332891-SampleFonts.js.map +1 -1
- package/dist-server/migrations/index.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +7 -7
- package/server/migrations/1558006505982-SeedGroup.ts +4 -4
- package/server/migrations/1558006512362-SeedBoard.ts +6 -6
- package/server/migrations/1558009487900-SeedPlayGroup.ts +4 -4
- package/server/migrations/1563869152824-TestLabels.ts +6 -6
- package/server/migrations/1564039750397-SampleBoards.ts +10 -10
- package/server/migrations/1564139332891-SampleFonts.ts +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MigrationInterface, QueryRunner } from 'typeorm'
|
|
2
|
-
|
|
3
|
-
import { Domain } from '@things-factory/shell'
|
|
2
|
+
|
|
4
3
|
import { Font } from '@things-factory/font-base'
|
|
4
|
+
import { Domain, getRepository } from '@things-factory/shell'
|
|
5
5
|
|
|
6
6
|
const FONTS = [
|
|
7
7
|
{
|
|
@@ -73,7 +73,7 @@ export class SampleFonts1564139332891 implements MigrationInterface {
|
|
|
73
73
|
public async up(queryRunner: QueryRunner): Promise<any> {
|
|
74
74
|
const repository = getRepository(Font)
|
|
75
75
|
const domainRepository = getRepository(Domain)
|
|
76
|
-
const domain = await domainRepository.
|
|
76
|
+
const domain = await domainRepository.findOneBy({ subdomain: 'system' })
|
|
77
77
|
|
|
78
78
|
FONTS.forEach(async font => {
|
|
79
79
|
Object.defineProperty(font, 'domain', { value: domain })
|
|
@@ -87,7 +87,7 @@ export class SampleFonts1564139332891 implements MigrationInterface {
|
|
|
87
87
|
|
|
88
88
|
return await Promise.all(
|
|
89
89
|
FONTS.reverse().map(async font => {
|
|
90
|
-
let record = await repository.
|
|
90
|
+
let record = await repository.findOneBy({ name: font.name })
|
|
91
91
|
|
|
92
92
|
// TODO remove cascade
|
|
93
93
|
await repository.remove(record)
|