getPendingListings

Reference

---@return table[] listings -- Raw listing rows with status 'pending', oldest first
function getPendingListings() end

Returns the raw database rows (id, identifier, username, name, description, phone, image_url, status, created_at). Pair with approveListing or deleteListing to work through the moderation queue.

Usage example

  local pending = exports.fd_laptop:getPendingListings()

  for _, listing in ipairs(pending) do
      print(listing.id, listing.name, listing.username)
  end

Copyright © 2025 Felis Development