mirror of
https://github.com/outline/outline.git
synced 2026-12-01 09:22:14 +03:00
test
This commit is contained in:
1 parent
8d611d3a88
commit
bd4401345c
2 files changed
+2
-1
No files matched your search
@@ -9,6 +9,7 @@ export default function IsUrlOrRelativePath(target: any, propertyName: string) {
|
||||
validate: {
|
||||
validUrlOrPath(value: string) {
|
||||
if (
|
||||
value &&
|
||||
!isURL(value, {
|
||||
require_host: false,
|
||||
require_protocol: false,
|
||||
|
||||
@@ -27,7 +27,7 @@ export default class UploadUserAvatarTask extends BaseTask<Props> {
|
||||
);
|
||||
|
||||
if (res?.url) {
|
||||
await user.update({ avatarUrl: res?.url });
|
||||
await user.update({ avatarUrl: res.url });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user