fix: Allow owner to always edit memory blocks
This commit is contained in:
parent
4b6c4b3260
commit
2464d9406e
2 changed files with 1 additions and 8 deletions
|
|
@ -89,7 +89,7 @@ ${parsedThread}`,
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
functionResponse: {
|
functionResponse: {
|
||||||
name: call.name as string,
|
name: call.name as string,
|
||||||
response: { res: functionResponse },
|
response: functionResponse,
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -49,13 +49,6 @@ export async function handler(
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!blockHandler.block.mutable) {
|
|
||||||
return {
|
|
||||||
success: false,
|
|
||||||
message: `Memory block '${args.block}' is not mutable.`,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
await blockHandler.createEntry(args.label, args.value);
|
await blockHandler.createEntry(args.label, args.value);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue