Merge branch 'develop' into adiDev
This commit is contained in:
commit
e184714676
2 changed files with 15 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ export class ProfileAvatarController extends Controller {
|
||||||
@Get("profileId/{id}")
|
@Get("profileId/{id}")
|
||||||
async getProfile(@Path() id: string) {
|
async getProfile(@Path() id: string) {
|
||||||
const profile = await this.profileRepository.findOne({
|
const profile = await this.profileRepository.findOne({
|
||||||
select: ["avatar", "avatarName"],
|
select: ["id", "avatar", "avatarName"],
|
||||||
where: { id },
|
where: { id },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
|
export class UpdateTableProfileempAddRole21718098502267 implements MigrationInterface {
|
||||||
|
name = 'UpdateTableProfileempAddRole21718098502267'
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`changePosition\` ADD \`status\` text NULL COMMENT 'สถานะ'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`changePosition\` DROP COLUMN \`status\``);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue