我有一个js函数
export const cleanUp = async () => {
await User.destroy({ where: {} });
};
我正在尝试await User.destroy({ where: {} })
使用以下插入一行
recast.parse(`await ${module}.destroy({ where: {} });`);
但我坚持。因为esprimaUnexpected Identifier
需要一个异步声明。我还能如何实现这一目标?