Skip to content

Commit

Permalink
Merge pull request #332 from ainft-team/bugfix/jiyoung/missing-token-…
Browse files Browse the repository at this point in the history
…owner

fix: add missing token owner field.
  • Loading branch information
jiyoung-an authored Oct 25, 2024
2 parents f10b7fa + 14b3ac6 commit c686d71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ai/thread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class Threads extends FactoryBase {
const address = await this.ain.signer.getAddress();

await validateObject(this.ain, objectId);
await validateToken(this.ain, objectId, tokenId);
const token = await validateToken(this.ain, objectId, tokenId);
const _assistant = await validateAssistant(this.ain, objectId, tokenId);

const assistant = await getAssistant(this.ain, objectId, tokenId, _assistant.id);
Expand Down Expand Up @@ -77,6 +77,9 @@ export class Threads extends FactoryBase {
assistant: {
id: assistant.id,
createdAt: assistant.createdAt,
objectId: objectId,
tokenId: tokenId,
tokenOwner: token.owner,
model: assistant.model,
name: assistant.name,
description: assistant.description || null,
Expand Down

0 comments on commit c686d71

Please sign in to comment.