Compare commits
4 Commits
38e3ab6715
...
399ab2678d
| Author | SHA1 | Date | |
|---|---|---|---|
| 399ab2678d | |||
| 946aa231a3 | |||
| c6d2904cfe | |||
| 8d3305cd04 |
@ -20,7 +20,7 @@ export async function POST(req) {
|
||||
const isExistImage1 = await s3.send(
|
||||
new GetObjectCommand({
|
||||
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(
|
||||
new GetObjectCommand({
|
||||
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 번 이미지 복사
|
||||
const copyCommand = new CopyObjectCommand({
|
||||
Bucket,
|
||||
CopySource: encodeURI(`${Bucket}/Drawing/${objectNo}_${planNo}_1.png`),
|
||||
Key: `Drawing/${newObjectNo}_${newPlanNo}_1.png`,
|
||||
CopySource: encodeURI(`${Bucket}/Drawing/${process.env.S3_PROFILE}/${objectNo}_${planNo}_1.png`),
|
||||
Key: `Drawing/${process.env.S3_PROFILE}/${newObjectNo}_${newPlanNo}_1.png`,
|
||||
})
|
||||
|
||||
const response = await s3.send(copyCommand)
|
||||
|
||||
const copyCommand2 = new CopyObjectCommand({
|
||||
Bucket,
|
||||
CopySource: encodeURI(`${Bucket}/Drawing/${objectNo}_${planNo}_2.png`),
|
||||
Key: `Drawing/${newObjectNo}_${newPlanNo}_2.png`,
|
||||
CopySource: encodeURI(`${Bucket}/Drawing/${process.env.S3_PROFILE}/${objectNo}_${planNo}_2.png`),
|
||||
Key: `Drawing/${process.env.S3_PROFILE}/${newObjectNo}_${newPlanNo}_2.png`,
|
||||
})
|
||||
|
||||
const response2 = await s3.send(copyCommand2)
|
||||
|
||||
@ -401,7 +401,7 @@ export function useEvent() {
|
||||
const removeMouseEvent = (type) => {
|
||||
mouseEventListeners.current = mouseEventListeners.current.filter((event) => {
|
||||
if (event.eventType === type) {
|
||||
canvas.off(type, event.handler)
|
||||
canvas?.off(type, event.handler)
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user