Merge pull request 'dev' (#100) from dev into dev-deploy
Reviewed-on: #100
This commit is contained in:
commit
399ab2678d
@ -20,7 +20,7 @@ export async function POST(req) {
|
|||||||
const isExistImage1 = await s3.send(
|
const isExistImage1 = await s3.send(
|
||||||
new GetObjectCommand({
|
new GetObjectCommand({
|
||||||
Bucket,
|
Bucket,
|
||||||
Key: `Drawing/${objectNo}_${planNo}_1.png`,
|
Key: `Drawing/${process.env.S3_PROFILE}/${objectNo}_${planNo}_1.png`,
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ export async function POST(req) {
|
|||||||
const isExistImage2 = await s3.send(
|
const isExistImage2 = await s3.send(
|
||||||
new GetObjectCommand({
|
new GetObjectCommand({
|
||||||
Bucket,
|
Bucket,
|
||||||
Key: `Drawing/${objectNo}_${planNo}_2.png`,
|
Key: `Drawing/${process.env.S3_PROFILE}/${objectNo}_${planNo}_2.png`,
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -37,16 +37,16 @@ export async function POST(req) {
|
|||||||
//견적서1 번 이미지 복사
|
//견적서1 번 이미지 복사
|
||||||
const copyCommand = new CopyObjectCommand({
|
const copyCommand = new CopyObjectCommand({
|
||||||
Bucket,
|
Bucket,
|
||||||
CopySource: encodeURI(`${Bucket}/Drawing/${objectNo}_${planNo}_1.png`),
|
CopySource: encodeURI(`${Bucket}/Drawing/${process.env.S3_PROFILE}/${objectNo}_${planNo}_1.png`),
|
||||||
Key: `Drawing/${newObjectNo}_${newPlanNo}_1.png`,
|
Key: `Drawing/${process.env.S3_PROFILE}/${newObjectNo}_${newPlanNo}_1.png`,
|
||||||
})
|
})
|
||||||
|
|
||||||
const response = await s3.send(copyCommand)
|
const response = await s3.send(copyCommand)
|
||||||
|
|
||||||
const copyCommand2 = new CopyObjectCommand({
|
const copyCommand2 = new CopyObjectCommand({
|
||||||
Bucket,
|
Bucket,
|
||||||
CopySource: encodeURI(`${Bucket}/Drawing/${objectNo}_${planNo}_2.png`),
|
CopySource: encodeURI(`${Bucket}/Drawing/${process.env.S3_PROFILE}/${objectNo}_${planNo}_2.png`),
|
||||||
Key: `Drawing/${newObjectNo}_${newPlanNo}_2.png`,
|
Key: `Drawing/${process.env.S3_PROFILE}/${newObjectNo}_${newPlanNo}_2.png`,
|
||||||
})
|
})
|
||||||
|
|
||||||
const response2 = await s3.send(copyCommand2)
|
const response2 = await s3.send(copyCommand2)
|
||||||
|
|||||||
@ -401,7 +401,7 @@ export function useEvent() {
|
|||||||
const removeMouseEvent = (type) => {
|
const removeMouseEvent = (type) => {
|
||||||
mouseEventListeners.current = mouseEventListeners.current.filter((event) => {
|
mouseEventListeners.current = mouseEventListeners.current.filter((event) => {
|
||||||
if (event.eventType === type) {
|
if (event.eventType === type) {
|
||||||
canvas.off(type, event.handler)
|
canvas?.off(type, event.handler)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user