forked from overextended/ox_core
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
ox_core:v1.5.6
Hi, I'm trying to create group and create an account at the same time with hasAccount: true
Group is ok, but account is not created
await Ox.CreateGroup({
name: "job",
label: "Job",
type: 'job',
grades: [{label: "owner", accountRole: "owner"}],
hasAccount: true,
})From ox_core below, we generate insertedGrades variable and then this variable is tested : return insertedGrades.affectedRows > 0
But, insertedGrades is an array and not an object so the test is always false and when InsertGroup() return false, group is not setup and account is not created
Line 33 in 6eaeb23
| const insertedGrades = (await conn.batch( |
I hope I'm clear
Thanks for work about ox core
Metadata
Metadata
Assignees
Labels
No labels