Skip to content

Commit

Permalink
fix(server): resolve publishing issues for duplicate functions occurs (
Browse files Browse the repository at this point in the history
  • Loading branch information
HUAHUAI23 authored Aug 15, 2024
1 parent be0d141 commit 4665f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/function/function.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export class FunctionService {
try {
await session.withTransaction(async () => {
const coll = db.collection(CN_PUBLISHED_FUNCTIONS)
await coll.deleteOne(
await coll.deleteMany(
{ name: oldFuncName ? oldFuncName : func.name },
{ session },
)
Expand Down

0 comments on commit 4665f0d

Please sign in to comment.