mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
fix: Replacement parameters in index collision query (#10880)
* fix: Replacement parameters in index collision query * refactor
This commit is contained in:
@@ -31,7 +31,7 @@ export default async function removeIndexCollision(
|
||||
where: {
|
||||
teamId,
|
||||
deletedAt: null,
|
||||
index: Sequelize.literal(`"collection"."index" collate "C" > '${index}'`),
|
||||
index: Sequelize.literal(`"collection"."index" collate "C" > :index`),
|
||||
},
|
||||
attributes: ["id", "index"],
|
||||
limit: 1,
|
||||
@@ -39,6 +39,7 @@ export default async function removeIndexCollision(
|
||||
Sequelize.literal('"collection"."index" collate "C"'),
|
||||
["updatedAt", "DESC"],
|
||||
],
|
||||
replacements: { index },
|
||||
...options,
|
||||
});
|
||||
const nextCollectionIndex = nextCollection.length
|
||||
|
||||
Reference in New Issue
Block a user