mirror of
https://github.com/Lifeforge-app/lifeforge.git
synced 2026-03-03 02:27:00 +00:00
fix(cli): filter out --http flag for superuser creation command
This commit is contained in:
@@ -34,7 +34,8 @@ export function createPocketBaseSuperuser(
|
||||
|
||||
try {
|
||||
const result = executeCommand(
|
||||
`${PB_BINARY_PATH} superuser create ${PB_KWARGS.join(' ')}`,
|
||||
// Remove flags with --http flag because PocketBase don't take http flag for superuser creation
|
||||
`${PB_BINARY_PATH} superuser create ${PB_KWARGS.filter(flag => !flag.startsWith('--http')).join(' ')}`,
|
||||
{},
|
||||
[email, password]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user