spec(bubble-game): シード値の許容範囲を6時間に (MisskeyIO#367)

This commit is contained in:
まっちゃとーにゅ 2024-01-16 23:02:25 +09:00 committed by GitHub
parent df7f01a5b3
commit 67535514b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,8 +63,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
throw new ApiError(meta.errors.invalidSeed);
}
// シードが古すぎる(1時間以上前)のも弾く
if (seedDate.getTime() < now.getTime() - 1000 * 60 * 60) {
// シードが古すぎる(6時間以上前)のも弾く
if (seedDate.getTime() < now.getTime() - 1000 * 60 * 60 * 6) {
throw new ApiError(meta.errors.invalidSeed);
}