@molecule/api-resource-follow 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/handlers/create.js
CHANGED
|
@@ -16,7 +16,7 @@ export async function create(req, res) {
|
|
|
16
16
|
const userId = res.locals.session?.userId;
|
|
17
17
|
if (!userId) {
|
|
18
18
|
res.status(401).json({
|
|
19
|
-
error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized' }),
|
|
19
|
+
error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized.' }),
|
|
20
20
|
errorKey: 'resource.error.unauthorized',
|
|
21
21
|
});
|
|
22
22
|
return;
|
package/dist/handlers/del.js
CHANGED
|
@@ -16,7 +16,7 @@ export async function del(req, res) {
|
|
|
16
16
|
const userId = res.locals.session?.userId;
|
|
17
17
|
if (!userId) {
|
|
18
18
|
res.status(401).json({
|
|
19
|
-
error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized' }),
|
|
19
|
+
error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized.' }),
|
|
20
20
|
errorKey: 'resource.error.unauthorized',
|
|
21
21
|
});
|
|
22
22
|
return;
|
package/dist/handlers/read.js
CHANGED
|
@@ -18,7 +18,7 @@ export async function following(req, res) {
|
|
|
18
18
|
const userId = res.locals.session?.userId;
|
|
19
19
|
if (!userId) {
|
|
20
20
|
res.status(401).json({
|
|
21
|
-
error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized' }),
|
|
21
|
+
error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized.' }),
|
|
22
22
|
errorKey: 'resource.error.unauthorized',
|
|
23
23
|
});
|
|
24
24
|
return;
|
package/dist/handlers/update.js
CHANGED
|
@@ -16,7 +16,7 @@ export async function checkFollowing(req, res) {
|
|
|
16
16
|
const userId = res.locals.session?.userId;
|
|
17
17
|
if (!userId) {
|
|
18
18
|
res.status(401).json({
|
|
19
|
-
error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized' }),
|
|
19
|
+
error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized.' }),
|
|
20
20
|
errorKey: 'resource.error.unauthorized',
|
|
21
21
|
});
|
|
22
22
|
return;
|