Merge branch 'develop' into adiDev

This commit is contained in:
AdisakKanthawilang 2024-06-11 18:28:41 +07:00
commit e184714676
2 changed files with 15 additions and 1 deletions

View file

@ -25,7 +25,7 @@ export class ProfileAvatarController extends Controller {
@Get("profileId/{id}")
async getProfile(@Path() id: string) {
const profile = await this.profileRepository.findOne({
select: ["avatar", "avatarName"],
select: ["id", "avatar", "avatarName"],
where: { id },
});

View file

@ -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\``);
}
}