Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkObject API should also accept a member property #1792

Closed
worksofliam opened this issue Jan 20, 2024 · 1 comment 路 Fixed by #1811
Closed

checkObject API should also accept a member property #1792

worksofliam opened this issue Jan 20, 2024 · 1 comment 路 Fixed by #1811
Labels
enhancement New feature or request good first issue Good for newcomers. Feel free to ask for help with these!
Milestone

Comments

@worksofliam
Copy link
Contributor

No description provided.

@worksofliam worksofliam added enhancement New feature or request good first issue Good for newcomers. Feel free to ask for help with these! labels Jan 20, 2024
@worksofliam worksofliam added this to the 3.0.0 milestone Jan 20, 2024
@worksofliam worksofliam linked a pull request Jan 30, 2024 that will close this issue
6 tasks
@krethan
Copy link
Contributor

krethan commented Jan 30, 2024

@worksofliam You can try this way too:

async checkObject(object: { library: string, name: string, type: string, member?: string }, authorities: Authority[] = [*NONE]) {
return (await this.ibmi.runCommand({
command: CHKOBJ OBJ(${object.library.toLocaleUpperCase()}/${object.name.toLocaleUpperCase()}) OBJTYPE(${object.type.toLocaleUpperCase()})${object.member?' MBR(' + object.member.toLocaleUpperCase() + ')':''} AUT(${authorities.join(" ")}),
noLibList: true
})).code === 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers. Feel free to ask for help with these!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants