Use right id prefix

This commit is contained in:
Adria Navarro 2025-03-17 12:08:07 +01:00
parent bdc3fcff3d
commit 1da98c0b52
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ describe("/oauth2", () => {
beforeEach(async () => await config.newTenant())
const expectOAuth2ConfigId = expect.stringMatching(
`^${VirtualDocumentType.ROW_ACTION}_.+$`
`^${VirtualDocumentType.OAUTH2_CONFIG}_.+$`
)
describe("fetch", () => {

View File

@ -34,7 +34,7 @@ export async function create(
throw new HTTPError("Name already used", 400)
}
const id = `${VirtualDocumentType.ROW_ACTION}${SEPARATOR}${utils.newid()}`
const id = `${VirtualDocumentType.OAUTH2_CONFIG}${SEPARATOR}${utils.newid()}`
doc.configs[id] = {
id,
...config,