fix: conflict resolution

This commit is contained in:
iCrawl 2023-11-14 01:35:08 +01:00
parent 8f432400d8
commit 00063912ee
No known key found for this signature in database
GPG key ID: 1AB888B16355FBB2

View file

@ -29,7 +29,7 @@ for await (const file of globber.globGenerator()) {
await pool.sql`insert into documentation (name, version, url) values (${name.replace(
'@discordjs/',
'',
)}, ${version}, ${url}) on conflict (name, version, url) do update set url = EXCLUDED.url`;
)}, ${version}, ${url}) on conflict (name, version) do update set url = EXCLUDED.url`;
} catch (error) {
const err = error as Error;
console.log(err.message);