Fix tag.{add,remove}().

This commit is contained in:
Julien Fontanet 2015-09-15 16:25:45 +02:00
parent 37250a6f48
commit 44f4423a9d

View File

@ -1,5 +1,5 @@
export async function add ({tag, id}) {
await this.getXAPI(id).addTag(id, tag)
export async function add ({tag, object}) {
await this.getXAPI(object).addTag(object.id, tag)
}
add.description = 'add a new tag to an object'
@ -15,8 +15,8 @@ add.params = {
// -------------------------------------------------------------------
export async function remove ({tag, id}) {
await this.getXAPI(id).removeTag(id, tag)
export async function remove ({tag, object}) {
await this.getXAPI(object).removeTag(object.id, tag)
}
remove.description = 'remove an existing tag from an object'