fix: add region to gift-cards
This commit is contained in:
@@ -22,6 +22,8 @@ import { defaultRelations, defaultFields } from "./"
|
|||||||
* description: The original value of the Gift Card.
|
* description: The original value of the Gift Card.
|
||||||
* balance:
|
* balance:
|
||||||
* description: The current balanace of the Gift Card
|
* description: The current balanace of the Gift Card
|
||||||
|
* region:
|
||||||
|
* $ref: "#/components/schemas/region"
|
||||||
*/
|
*/
|
||||||
export default async (req, res) => {
|
export default async (req, res) => {
|
||||||
const { code } = req.params
|
const { code } = req.params
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ export default app => {
|
|||||||
return app
|
return app
|
||||||
}
|
}
|
||||||
|
|
||||||
export const defaultRelations = []
|
export const defaultRelations = ["region"]
|
||||||
|
|
||||||
export const defaultFields = ["id", "code", "value", "balance"]
|
export const defaultFields = ["id", "code", "value", "balance"]
|
||||||
|
|
||||||
export const allowedRelations = []
|
export const allowedRelations = ["region"]
|
||||||
|
|
||||||
export const allowedFields = ["id", "code", "value", "balance"]
|
export const allowedFields = ["id", "code", "value", "balance"]
|
||||||
|
|||||||
Reference in New Issue
Block a user