Future<bool> hasMiniProgram() async{ final prevVersion = await database.get(_module.id); return prevVersion != null; }