This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View File

@@ -12,7 +12,7 @@ export const meta = {
validator: $.optional.arr($.str.match(/^[a-zA-Z0-9_]+$/)),
default: [],
},
}
},
};
export default define(meta, async (ps, user) => {

View File

@@ -10,7 +10,7 @@ export const meta = {
params: {
key: {
validator: $.str
validator: $.str,
},
scope: {
@@ -23,7 +23,7 @@ export const meta = {
noSuchKey: {
message: 'No such key.',
code: 'NO_SUCH_KEY',
id: '97a1e8e7-c0f7-47d2-957a-92e61256e01a'
id: '97a1e8e7-c0f7-47d2-957a-92e61256e01a',
},
},
};

View File

@@ -10,7 +10,7 @@ export const meta = {
params: {
key: {
validator: $.str
validator: $.str,
},
scope: {
@@ -23,7 +23,7 @@ export const meta = {
noSuchKey: {
message: 'No such key.',
code: 'NO_SUCH_KEY',
id: 'ac3ed68a-62f0-422b-a7bc-d5e09e8f6a6a'
id: 'ac3ed68a-62f0-422b-a7bc-d5e09e8f6a6a',
},
},
};

View File

@@ -12,7 +12,7 @@ export const meta = {
validator: $.optional.arr($.str.match(/^[a-zA-Z0-9_]+$/)),
default: [],
},
}
},
};
export default define(meta, async (ps, user) => {

View File

@@ -12,7 +12,7 @@ export const meta = {
validator: $.optional.arr($.str.match(/^[a-zA-Z0-9_]+$/)),
default: [],
},
}
},
};
export default define(meta, async (ps, user) => {

View File

@@ -10,7 +10,7 @@ export const meta = {
params: {
key: {
validator: $.str
validator: $.str,
},
scope: {
@@ -23,7 +23,7 @@ export const meta = {
noSuchKey: {
message: 'No such key.',
code: 'NO_SUCH_KEY',
id: '1fac4e8a-a6cd-4e39-a4a5-3a7e11f1b019'
id: '1fac4e8a-a6cd-4e39-a4a5-3a7e11f1b019',
},
},
};

View File

@@ -7,7 +7,7 @@ export const meta = {
secure: true,
params: {
}
},
};
export default define(meta, async (ps, user) => {

View File

@@ -11,18 +11,18 @@ export const meta = {
params: {
key: {
validator: $.str.min(1)
validator: $.str.min(1),
},
value: {
validator: $.nullable.any
validator: $.nullable.any,
},
scope: {
validator: $.optional.arr($.str.match(/^[a-zA-Z0-9_]+$/)),
default: [],
},
}
},
};
export default define(meta, async (ps, user) => {
@@ -37,7 +37,7 @@ export default define(meta, async (ps, user) => {
if (existingItem) {
await RegistryItems.update(existingItem.id, {
updatedAt: new Date(),
value: ps.value
value: ps.value,
});
} else {
await RegistryItems.insert({
@@ -48,7 +48,7 @@ export default define(meta, async (ps, user) => {
domain: null,
scope: ps.scope,
key: ps.key,
value: ps.value
value: ps.value,
});
}
@@ -56,6 +56,6 @@ export default define(meta, async (ps, user) => {
publishMainStream(user.id, 'registryUpdated', {
scope: ps.scope,
key: ps.key,
value: ps.value
value: ps.value,
});
});