mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 14:20:22 +08:00
Use OR IGNORE when sqlite
This commit is contained in:
parent
6c7175c109
commit
27c99fd90a
@ -187,7 +187,10 @@ class AppES extends BaseES {
|
||||
const subdomain = await entity.get('subdomain');
|
||||
const user = Context.get('user');
|
||||
let subdomain_res = await this.db.write(
|
||||
`INSERT IGNORE INTO subdomains
|
||||
`INSERT ${this.db.case({
|
||||
mysql: 'IGNORE',
|
||||
sqlite: 'OR IGNORE',
|
||||
})} INTO subdomains
|
||||
(subdomain, user_id, root_dir_id, uuid) VALUES
|
||||
( ?, ?, ?, ?)`,
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user