update: update shareToken entity
This commit is contained in:
@@ -3,4 +3,4 @@ ACCESS_SECRET=plzInsert
|
||||
REFRESH_SECRET=plzInsert
|
||||
JWT_ACCESS_SECRET=true
|
||||
URL_ACCESS_SECRET=plzInsert
|
||||
CORS_ORIGIN = ['http://localhost:3000']
|
||||
CORS_ORIGIN = [http://localhost:3000', 'undefined']
|
||||
@@ -14,6 +14,7 @@ export class DashboardController {
|
||||
@ApiBearerAuth('AccessKey')
|
||||
create(@Body() createDashboardDto: CreateDashboardDto, @Req() req) {
|
||||
const { accessKeyData } = req.user;
|
||||
console.log('asdf', accessKeyData)
|
||||
return this.dashboardService.create(createDashboardDto, accessKeyData.id);
|
||||
}
|
||||
|
||||
|
||||
@@ -110,6 +110,7 @@ export class DashboardService {
|
||||
);
|
||||
}
|
||||
find_all.forEach(el => {
|
||||
console.log('adf,', el)
|
||||
el.layout = JSON.parse(el.layout);
|
||||
});
|
||||
return { status: ResponseStatus.SUCCESS, data: find_all };
|
||||
|
||||
@@ -11,7 +11,7 @@ export class DashboardShare extends BaseEntity {
|
||||
@Column({ comment: '랜덤 유저Id'})
|
||||
uuid: string;
|
||||
|
||||
@Column({ length: 300, comment: '공유url 토큰'})
|
||||
@Column({ nullable: true, length: 300, comment: '공유url 토큰'})
|
||||
shareToken: string;
|
||||
|
||||
@Optional()
|
||||
|
||||
@@ -16,7 +16,6 @@ export class ShareUrlController {
|
||||
checkShareUrlOn(@Req() req, @Param() params, @Body() shareUrlOnDto: ShareUrlOnDto) {
|
||||
const { userId } = req.user.accessKeyData;
|
||||
const { dashboardId } = params;
|
||||
console.log(dashboardId);
|
||||
return this.shareUrlService.checkShareUrlOn(userId, dashboardId, shareUrlOnDto);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user