wa_strapi
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

18 行
422 B

  1. "use strict";
  2. /**
  3. * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/services.html#core-services)
  4. * to customize this service
  5. */
  6. module.exports = {
  7. getId: async (params) => {
  8. const results = await strapi.query("session-data").find(params);
  9. let arrKeys = [];
  10. results.forEach((i) => {
  11. if (!arrKeys.includes(i["id"])) arrKeys.push(i["id"]);
  12. });
  13. return arrKeys;
  14. },
  15. };