feat(api): fix version create
This commit is contained in:
parent
21dd7a28ec
commit
72082a51d1
@ -61,7 +61,7 @@ export const createFunc = async ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if a version with the same version already exists
|
// Check if a version with the same version already exists
|
||||||
const versionResult = await db.query.version.findFirst({
|
const versionResult = await db.query.changelog_version.findFirst({
|
||||||
where: and(
|
where: and(
|
||||||
eq(changelog_version.changelogId, payload.changelogId),
|
eq(changelog_version.changelogId, payload.changelogId),
|
||||||
eq(changelog_version.version, validVersion),
|
eq(changelog_version.version, validVersion),
|
||||||
|
Loading…
Reference in New Issue
Block a user