diff options
| author | Factiven <[email protected]> | 2023-09-26 23:35:35 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-09-26 23:35:35 +0700 |
| commit | 20b8a7267827e3a07c1eef668c3b9c22fda43765 (patch) | |
| tree | 2fec9006dfac5737d8b227bf5ccce73880800cc2 /pages/api | |
| parent | Update release.md (diff) | |
| download | moopa-4.1.2.tar.xz moopa-4.1.2.zip | |
Update v4.1.2v4.1.2
Diffstat (limited to 'pages/api')
| -rw-r--r-- | pages/api/v2/admin/meta/index.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/pages/api/v2/admin/meta/index.js b/pages/api/v2/admin/meta/index.js index 5f51b7f..600a3ef 100644 --- a/pages/api/v2/admin/meta/index.js +++ b/pages/api/v2/admin/meta/index.js @@ -27,12 +27,6 @@ export default async function handler(req, res) { }); } - const getId = await redis.get(`meta:${id}`); - if (getId) { - return res - .status(200) - .json({ message: `Data already exist for id: ${id}` }); - } await redis.set(`meta:${id}`, JSON.stringify(data)); return res .status(200) |