Merge pull request 'dev' (#100) from dev into dev-deploy

Reviewed-on: #100
This commit is contained in:
ysCha 2025-06-05 11:31:30 +09:00
commit 399ab2678d
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/${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)

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