Compare commits

..

No commits in common. "399ab2678d6fe6ccdc503159d339989383c4a593" and "38e3ab6715958b04f9a06347278fbe51857af263" have entirely different histories.

2 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,7 @@ export async function POST(req) {
const isExistImage1 = await s3.send(
new GetObjectCommand({
Bucket,
Key: `Drawing/${process.env.S3_PROFILE}/${objectNo}_${planNo}_1.png`,
Key: `Drawing/${objectNo}_${planNo}_1.png`,
}),
)
@ -28,7 +28,7 @@ export async function POST(req) {
const isExistImage2 = await s3.send(
new GetObjectCommand({
Bucket,
Key: `Drawing/${process.env.S3_PROFILE}/${objectNo}_${planNo}_2.png`,
Key: `Drawing/${objectNo}_${planNo}_2.png`,
}),
)
@ -37,16 +37,16 @@ export async function POST(req) {
//견적서1 번 이미지 복사
const copyCommand = new CopyObjectCommand({
Bucket,
CopySource: encodeURI(`${Bucket}/Drawing/${process.env.S3_PROFILE}/${objectNo}_${planNo}_1.png`),
Key: `Drawing/${process.env.S3_PROFILE}/${newObjectNo}_${newPlanNo}_1.png`,
CopySource: encodeURI(`${Bucket}/Drawing/${objectNo}_${planNo}_1.png`),
Key: `Drawing/${newObjectNo}_${newPlanNo}_1.png`,
})
const response = await s3.send(copyCommand)
const copyCommand2 = new CopyObjectCommand({
Bucket,
CopySource: encodeURI(`${Bucket}/Drawing/${process.env.S3_PROFILE}/${objectNo}_${planNo}_2.png`),
Key: `Drawing/${process.env.S3_PROFILE}/${newObjectNo}_${newPlanNo}_2.png`,
CopySource: encodeURI(`${Bucket}/Drawing/${objectNo}_${planNo}_2.png`),
Key: `Drawing/${newObjectNo}_${newPlanNo}_2.png`,
})
const response2 = await s3.send(copyCommand2)

View File

@ -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