mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
Fix singleton check in mysql
This commit is contained in:
@@ -24,7 +24,7 @@ const collectionExists: RequestHandler = asyncHandler(async (req, res, next) =>
|
||||
.where({ collection: req.collection })
|
||||
.first();
|
||||
|
||||
req.singleton = collectionInfo?.singleton || false;
|
||||
req.singleton = collectionInfo?.singleton === true || collectionInfo?.singleton === 1;
|
||||
|
||||
return next();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user